diff options
author | Keith Busch <keith.busch@intel.com> | 2019-01-28 19:46:07 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2019-02-06 18:35:33 +0300 |
commit | e7ad43c3eda6a1690c4c3c341f95dc1c6898da83 (patch) | |
tree | 34ea98eb7f45c7adbed89fdeaa0e974ee50e675c /drivers/pinctrl/meson | |
parent | ec51f8ee1e63498e9f521ec0e5a6d04622bb2c67 (diff) | |
download | linux-e7ad43c3eda6a1690c4c3c341f95dc1c6898da83.tar.xz |
nvme: lock NS list changes while handling command effects
If a controller supports the NS Change Notification, the namespace
scan_work is automatically triggered after attaching a new namespace.
Occasionally the namespace scan_work may append the new namespace to the
list before the admin command effects handling is completed. The effects
handling unfreezes namespaces, but if it unfreezes the newly attached
namespace, its request_queue freeze depth will be off and we'll hit the
warning in blk_mq_unfreeze_queue().
On the next namespace add, we will fail to freeze that queue due to the
previous bad accounting and deadlock waiting for frozen.
Fix that by preventing scan work from altering the namespace list while
command effects handling needs to pair freeze with unfreeze.
Reported-by: Wen Xiong <wenxiong@us.ibm.com>
Tested-by: Wen Xiong <wenxiong@us.ibm.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/pinctrl/meson')
0 files changed, 0 insertions, 0 deletions