diff options
author | Amit Engel <[email protected]> | 2020-01-08 01:47:24 +0900 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2020-01-10 08:55:50 -0700 |
commit | e17016f6dcb047f91a8fc9f46bbf81a21d15ca73 (patch) | |
tree | e456d8791190e6c73f49d6b4d1fb1c4aff01d552 /scripts/gcc-plugins/randomize_layout_plugin.c | |
parent | 35038bffa87da282010b91108cadd13238bb5bbd (diff) |
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 <[email protected]>
Signed-off-by: Amit Engel <[email protected]>
[endiness, naming, and kernel style fixes]
Signed-off-by: Chaitanya Kulkarni <[email protected]>
Signed-off-by: Keith Busch <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions