]> git.ipfire.org Git - people/arne_f/kernel.git/commit
target: Fix R_HOLDER bit usage for AllRegistrants
authorNicholas Bellinger <nab@linux-iscsi.org>
Sun, 14 Dec 2014 09:47:19 +0000 (01:47 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 14:07:00 +0000 (15:07 +0100)
commit3b8bcf0a4541ebb0dbac921af866ea6b26b5d753
treed504cb88de1e7b1e6b75eac7af1da1c4fb21cde7
parentd5b825cd6eca3e370760d2d7abf34d531552f31d
target: Fix R_HOLDER bit usage for AllRegistrants

commit d16ca7c5198fd668db10d2c7b048ed3359c12c54 upstream.

This patch fixes the usage of R_HOLDER bit for an All Registrants
reservation in READ_FULL_STATUS, where only the registration who
issued RESERVE was being reported as having an active reservation.

It changes core_scsi3_pri_read_full_status() to check ahead of the
list walk of active registrations to see if All Registrants is active,
and if so set R_HOLDER bit and scope/type fields for all active
registrations.

Reported-by: Ilias Tsitsimpis <i.tsitsimpis@gmail.com>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/target/target_core_pr.c