scsi: Add support for block PR read keys/reservation
authorMike Christie <michael.christie@oracle.com>
Fri, 7 Apr 2023 20:05:38 +0000 (15:05 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 12 Apr 2023 01:55:35 +0000 (21:55 -0400)
commit0af7b5e2362d3b67334f20e49138d89141dc24d3
tree0a95e36506583f2024262627154a34dca92d4ceb
parent0730b1632b7e803aad81ff19a4fda964a9d97053
scsi: Add support for block PR read keys/reservation

This adds support in sd.c for the block PR read keys and read reservation
callouts, so upper layers like LIO can get the PR info that's been setup
using the existing pr callouts and return it to initiators.

Signed-off-by: Mike Christie <michael.christie@oracle.com>
Link: https://lore.kernel.org/r/20230407200551.12660-6-michael.christie@oracle.com
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.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/scsi/scsi_common.c
drivers/scsi/sd.c
include/scsi/scsi_common.h
include/scsi/scsi_proto.h