nvme: Don't hardcode the data len for pr commands
authorMike Christie <michael.christie@oracle.com>
Fri, 7 Apr 2023 20:05:41 +0000 (15:05 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 12 Apr 2023 01:55:35 +0000 (21:55 -0400)
commitd45b446bd81822f5a0c3019f58e6c69f7ce71ce6
tree63a66798017078ba22ca439f411857f50bdc8756
parentf2bf2e7e2d526116aab942aaf1b71a949a570ba6
nvme: Don't hardcode the data len for pr commands

Reservation Report support needs to pass in a variable sized buffer, so
this patch has the pr command helpers take a data length argument.

Signed-off-by: Mike Christie <michael.christie@oracle.com>
Link: https://lore.kernel.org/r/20230407200551.12660-9-michael.christie@oracle.com
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/nvme/host/core.c