]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: enable aen regardless of the presence of I/O queues
authorSagi Grimberg <sagi@grimberg.me>
Thu, 22 Aug 2019 18:25:46 +0000 (11:25 -0700)
committerSagi Grimberg <sagi@grimberg.me>
Thu, 12 Sep 2019 15:50:46 +0000 (08:50 -0700)
commitfe504d3913fcb119127eea39b2dddc57310551aa
tree7f587879301c53f4830064360dc4f95bd5a8f831
parentab4645adb3a0a4ee422739cce9e84c7ff19acecc
nvme: enable aen regardless of the presence of I/O queues

AENs in general are not related to the presence of I/O queues,
so enable them regardless. Note that the only exception is that
discovery controller will not support any of the requested AENs
and nvme_enable_aen will respect that and return, so it is still
safe to enable regardless.

Note it is safe to enable AENs even before the initial namespace
scanning as we have the scan operation in a workqueue context.

Reviewed-by: Minwoo Im <minwoo.im.dev@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/host/core.c