summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/meson
diff options
context:
space:
mode:
authorKeith Busch <keith.busch@intel.com>2019-01-28 19:46:07 +0300
committerChristoph Hellwig <hch@lst.de>2019-02-06 18:35:33 +0300
commite7ad43c3eda6a1690c4c3c341f95dc1c6898da83 (patch)
tree34ea98eb7f45c7adbed89fdeaa0e974ee50e675c /drivers/pinctrl/meson
parentec51f8ee1e63498e9f521ec0e5a6d04622bb2c67 (diff)
downloadlinux-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