[PATCH v6 11/18] nvme: Add pr_ops read_keys support
Hannes Reinecke
hare at suse.de
Tue Apr 11 00:20:37 PDT 2023
On 4/7/23 22:05, Mike Christie wrote:
> This patch adds support for the pr_ops read_keys callout by calling the
> NVMe Reservation Report helper, then parsing that info to get the
> controller's registered keys. Because the callout is only used in the
> kernel where the callers, like LIO, do not know about controller/host IDs,
> the callout just returns the registered keys which is required by the SCSI
> PR in READ KEYS command.
>
> Signed-off-by: Mike Christie <michael.christie at oracle.com>
> ---
> drivers/nvme/host/pr.c | 69 ++++++++++++++++++++++++++++++++++++++++++
> include/linux/nvme.h | 4 +++
> 2 files changed, 73 insertions(+)
>
Reviewed-by: Hannes Reinecke <hare at suse.de>
Cheers,
Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare at suse.de +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Ivo Totev, Andrew
Myers, Andrew McDonald, Martje Boudien Moerman
More information about the Linux-nvme
mailing list