aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/scsi/scsi_common.h
diff options
context:
space:
mode:
authorMike Christie <michael.christie@oracle.com>2023-04-07 15:05:38 -0500
committerMartin K. Petersen <martin.petersen@oracle.com>2023-04-11 21:55:35 -0400
commit0af7b5e2362d3b67334f20e49138d89141dc24d3 (patch)
tree0a95e36506583f2024262627154a34dca92d4ceb /include/scsi/scsi_common.h
parentscsi: Move sd_pr_type to scsi_common (diff)
downloadwireguard-linux-0af7b5e2362d3b67334f20e49138d89141dc24d3.tar.xz
wireguard-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.h1
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)