diff options
| author | Chaitanya Kulkarni <[email protected]> | 2021-06-21 03:01:09 +0000 |
|---|---|---|
| committer | Christoph Hellwig <[email protected]> | 2021-06-21 06:34:10 +0000 |
| commit | 3c3ee16532c1be92350a2a88bd19283b7bdf32e9 (patch) | |
| tree | b2b9cf30481433c66af9add11928a5134b4101d6 /drivers/net/wwan/iosm/iosm_ipc_protocol.c | |
| parent | nvme.h: add missing nvme_lba_range_type endianness annotations (diff) | |
| download | kernel-3c3ee16532c1be92350a2a88bd19283b7bdf32e9.tar.gz kernel-3c3ee16532c1be92350a2a88bd19283b7bdf32e9.zip | |
nvmet: use NVMET_MAX_NAMESPACES to set nn value
For Spec regarding MNAN value:-
If the controller supports Asymmetric Namespace Access Reporting, then
this field shall be set to a non-zero value that is less than or equal
to the NN value.
Instead of using subsys->max_nsid that gets calculated dynamically,
use NVMET_MAX_NAMESPACES value to report NN. This way we will maintain
the MNAN value spec compliant with NN.
Without this patch, code results in the following error :-
[337976.409142] nvme nvme1: Invalid MNAN value 1024
Signed-off-by: Chaitanya Kulkarni <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'drivers/net/wwan/iosm/iosm_ipc_protocol.c')
0 files changed, 0 insertions, 0 deletions
