Commit 6816966a8418b980481b4dced7eddd1796b145e8

Authored by Marco Sanvido
Committed by Nicholas Bellinger
1 parent 9e08e34e37

target: Allow PERSISTENT RESERVE IN for non-reservation holder

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>
Cc: <stable@vger.kernel.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

drivers/target/target_core_pr.c
... ... @@ -478,6 +478,7 @@
478 478 case READ_MEDIA_SERIAL_NUMBER:
479 479 case REPORT_LUNS:
480 480 case REQUEST_SENSE:
  481 + case PERSISTENT_RESERVE_IN:
481 482 ret = 0; /*/ Allowed CDBs */
482 483 break;
483 484 default: