summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Sanvido <marco@purestorage.com>2012-01-03 17:12:58 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-02-13 11:17:01 -0800
commit1348bc5266eb73206b11e675656051201f28949b (patch)
tree9a9c6a9306e05ccb08462e670076f2e9b88ddb02
parent1c7a78d3cf820992a6a67ea90423713fb429907f (diff)
downloadkernel-common-1348bc5266eb73206b11e675656051201f28949b.tar.gz
kernel-common-1348bc5266eb73206b11e675656051201f28949b.tar.bz2
kernel-common-1348bc5266eb73206b11e675656051201f28949b.zip
target: Allow PERSISTENT RESERVE IN for non-reservation holder
commit 6816966a8418b980481b4dced7eddd1796b145e8 upstream. Initiators that aren't the active reservation holder should be able to do a PERSISTENT RESERVE IN command in all cases, so add it to the list of allowed CDBs in core_scsi3_pr_seq_non_holder(). Signed-off-by: Marco Sanvido <marco@purestorage.com> Signed-off-by: Roland Dreier <roland@purestorage.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/target/target_core_pr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/target/target_core_pr.c b/drivers/target/target_core_pr.c
index 4911fe9610fc..9119d92df87f 100644
--- a/drivers/target/target_core_pr.c
+++ b/drivers/target/target_core_pr.c
@@ -481,6 +481,7 @@ static int core_scsi3_pr_seq_non_holder(
case READ_MEDIA_SERIAL_NUMBER:
case REPORT_LUNS:
case REQUEST_SENSE:
+ case PERSISTENT_RESERVE_IN:
ret = 0; /*/ Allowed CDBs */
break;
default: