scsi: target: Report and detect unsupported PR commands
authorMike Christie <michael.christie@oracle.com>
Fri, 7 Apr 2023 20:05:50 +0000 (15:05 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 12 Apr 2023 01:55:36 +0000 (21:55 -0400)
commit8455799d2d4676b746dce3d59cbc8060a6223619
tree1cb3108476443b95dcdcbf0595bee980f2d92b85
parentd9b3275bddd58f1e61171483c3625b5bd0841b71
scsi: target: Report and detect unsupported PR commands

The backend modules don't know about ports and I_T nexuses and the pr_ops
callouts the modules will use don't support the old RESERVE/RELEASE
commands. This patch has us report we don't support those types of
commands and fail them.

Signed-off-by: Mike Christie <michael.christie@oracle.com>
Link: https://lore.kernel.org/r/20230407200551.12660-18-michael.christie@oracle.com
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_pr.c
drivers/target/target_core_spc.c