target: Allow Write Exclusive non-reservation holders to READ
commit4f1d1adb44d160ba7c14353689b43ce1a107fba0
authorLee Duncan <lduncan@suse.com>
Mon, 5 Jan 2015 18:49:44 +0000 (5 10:49 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 14:07:00 +0000 (26 15:07 +0100)
treee39ae75eb9ed70188d3f4d7a898158c4ff7768c3
parentc3d6b5796b22abf78007bd6bb196d1f95a29ac19
target: Allow Write Exclusive non-reservation holders to READ

commit 1ecc7586922662e3ca2f3f0c3f17fec8749fc621 upstream.

For PGR reservation of type Write Exclusive Access, allow all non
reservation holding I_T nexuses with active registrations to READ
from the device.

This addresses a bug where active registrations that attempted
to READ would result in an reservation conflict.

Signed-off-by: Lee Duncan <lduncan@suse.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