diff options
author | Chaitanya Kulkarni | 2020-06-17 10:05:13 +0200 |
---|---|---|
committer | Christoph Hellwig | 2020-07-08 16:16:16 +0200 |
commit | 61f3b89630973037f67d8e25e5d26e80a51a7b37 (patch) | |
tree | 61f3f8444e76c3eaaf5d281f8d5c819d7d22f7c9 /crypto/michael_mic.c | |
parent | d4047cf99421d434660a5a0c61ac3e83b4ad0dad (diff) |
nvme-pci: use unsigned for io queue depth
The NVMe PCIe declares module parameter io_queue_depth as int. Change
this to u16 as queue depth can never be negative. Now to reflect this
update module parameter getter function from param_get_int() ->
param_get_uint() and respective setter function with type of n changed
from int to u16 with param_set_int() to param_set_ushort(). Finally
update struct nvme_dev q_depth member to u16 and use u16 in min_t()
when calculating dev->q_depth in the nvme_pci_enable() (since q_depth is
now u16) and use unsigned int instead of int when calculating
dev->tagset.queue_depth as target variable tagset->queue_depth is of type
unsigned int in nvme_dev_add().
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'crypto/michael_mic.c')
0 files changed, 0 insertions, 0 deletions