target: Allow Write Exclusive non-reservation holders to READ
authorLee Duncan <lduncan@suse.com>
Mon, 5 Jan 2015 18:49:44 +0000 (10:49 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 14:01:02 +0000 (15:01 +0100)
commit362684ea8f4c4af3e34a8779b49f07928de449a2
tree60eb28855ac7b48d7bbda4ac1d46763541dbf310
parent5e15feee101bc2853ce01157dba9b66d8c3e3725
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