summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorAmit Engel <amit.engel@dell.com>2020-01-08 01:47:24 +0900
committerJens Axboe <axboe@kernel.dk>2020-01-10 08:55:50 -0700
commite17016f6dcb047f91a8fc9f46bbf81a21d15ca73 (patch)
treee456d8791190e6c73f49d6b4d1fb1c4aff01d552 /block
parent35038bffa87da282010b91108cadd13238bb5bbd (diff)
downloadlinux-e17016f6dcb047f91a8fc9f46bbf81a21d15ca73.tar.bz2
nvmet: fix per feat data len for get_feature
The existing implementation for the get_feature admin-cmd does not use per-feature data len. This patch introduces a new helper function nvmet_feat_data_len(), which is used to calculate per feature data len. Right now we only set data len for fid 0x81 (NVME_FEAT_HOST_ID). Fixes: commit e9061c397839 ("nvmet: Remove the data_len field from the nvmet_req struct") Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Amit Engel <amit.engel@dell.com> [endiness, naming, and kernel style fixes] Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> Signed-off-by: Keith Busch <kbusch@kernel.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions