From: Marco Sanvido Date: Wed, 4 Jan 2012 01:12:58 +0000 (-0800) Subject: target: Allow PERSISTENT RESERVE IN for non-reservation holder X-Git-Tag: v3.0.21~13 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b8a8c4aa9e22c2de7af17ea48b7cc868f5bc79ad;p=karo-tx-linux.git 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 Signed-off-by: Roland Dreier Signed-off-by: Nicholas Bellinger Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/target/target_core_pr.c b/drivers/target/target_core_pr.c index 025d5c7e56ef..98e12d31c9c2 100644 --- a/drivers/target/target_core_pr.c +++ b/drivers/target/target_core_pr.c @@ -471,6 +471,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: