nvme: Add helper to send pr command
authorMike Christie <michael.christie@oracle.com>
Fri, 7 Apr 2023 20:05:43 +0000 (15:05 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 12 Apr 2023 01:55:35 +0000 (21:55 -0400)
commitf0614790b77300d69a1f37265f98b68c4835811b
treef0e7f1217989cc166dc6036f7d5374cb0ac7bd38
parentb668f2f5467c3316b67fa04975e2fccb0baec576
nvme: Add helper to send pr command

Move the code that checks for multipath support and sends the pr command
to a new helper so it can be used by the reservation report support added
in the next patches.

Signed-off-by: Mike Christie <michael.christie@oracle.com>
Link: https://lore.kernel.org/r/20230407200551.12660-11-michael.christie@oracle.com
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/nvme/host/pr.c