diff options
author | Mike Christie <michael.christie@oracle.com> | 2023-04-07 22:05:38 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2023-04-12 03:55:35 +0200 |
commit | 0af7b5e2362d3b67334f20e49138d89141dc24d3 (patch) | |
tree | 0a95e36506583f2024262627154a34dca92d4ceb /include/scsi/scsi_common.h | |
parent | scsi: Move sd_pr_type to scsi_common (diff) | |
download | linux-0af7b5e2362d3b67334f20e49138d89141dc24d3.tar.xz linux-0af7b5e2362d3b67334f20e49138d89141dc24d3.zip |
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>
Diffstat (limited to 'include/scsi/scsi_common.h')
-rw-r--r-- | include/scsi/scsi_common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/scsi/scsi_common.h b/include/scsi/scsi_common.h index e25291bbbe9b..fb58715fac86 100644 --- a/include/scsi/scsi_common.h +++ b/include/scsi/scsi_common.h @@ -20,6 +20,7 @@ enum scsi_pr_type { }; enum scsi_pr_type block_pr_type_to_scsi(enum pr_type type); +enum pr_type scsi_pr_type_to_block(enum scsi_pr_type type); static inline unsigned scsi_varlen_cdb_length(const void *hdr) |