diff options
author | Sagi Grimberg | 2019-01-07 23:54:23 -0800 |
---|---|---|
committer | Christoph Hellwig | 2019-01-09 13:47:06 -0500 |
commit | 9846ac0143fe9872e92fe2a1ddff868ad05bdbb6 (patch) | |
tree | f27313d9bb22b7c5d70ddae817e802b7813d4130 /drivers/nvme | |
parent | e85037a2e90ac9aa448a08927d7a7436206c6000 (diff) |
nvme-fabrics: unset write/poll queues for discovery controllers
Even if user-space sent it to us, it got it wrong so lets
help by disallowing it.
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme')
-rw-r--r-- | drivers/nvme/host/fabrics.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/nvme/host/fabrics.c b/drivers/nvme/host/fabrics.c index b2ab213f43de..3eb908c50e1a 100644 --- a/drivers/nvme/host/fabrics.c +++ b/drivers/nvme/host/fabrics.c @@ -874,6 +874,8 @@ static int nvmf_parse_options(struct nvmf_ctrl_options *opts, if (opts->discovery_nqn) { opts->kato = 0; opts->nr_io_queues = 0; + opts->nr_write_queues = 0; + opts->nr_poll_queues = 0; opts->duplicate_connect = true; } if (ctrl_loss_tmo < 0) |