scsi: target: core: New key must be used for moved PR
authorDmitry Bogdanov <d.bogdanov@yadro.com>
Fri, 9 Sep 2022 09:04:25 +0000 (12:04 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 1 Oct 2022 09:03:57 +0000 (05:03 -0400)
commit3e2deba7aa662862c8046aa24148b83b49298a9b
tree6dc89d940f41c09064771d0baeff45b904a23613
parent49790e6a582012c36ca17174cda228444f9a2414
scsi: target: core: New key must be used for moved PR

According to SPC4 5.12.8:

  e) Retain the reservation key specified in the SERVICE ACTION RESERVATION
  KEY field and associated information;

But currently sa_res_key is only used for the not existing I_T nexus. Add a
changing of the key for the existing I_T nexus the PR moved to.

Link: https://lore.kernel.org/r/20220909090425.14479-5-d.bogdanov@yadro.com
Reviewed-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Dmitry Bogdanov <d.bogdanov@yadro.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_pr.c