]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-pci: Sync queues on reset
authorKeith Busch <keith.busch@intel.com>
Tue, 14 May 2019 20:46:09 +0000 (14:46 -0600)
committerKeith Busch <keith.busch@intel.com>
Fri, 17 May 2019 17:04:34 +0000 (11:04 -0600)
commitf3b939ac854a127b089447a1352251f911fc3d18
treeae1291f1b36c6bac60a3b241769c68be8859b5e4
parentec30a5b5d3b10c4930d8ccabf3fbf0582a1f4a4a
nvme-pci: Sync queues on reset

A controller with multiple namespaces may have multiple request_queues with
their own timeout work. If a controller fails with IO outstanding to
diffent namespaces, each request queue may attempt to handle it, so
ensure there is no previously scheduled timeout work executing prior to
starting controller initialization by synchronizing with each queue.

Reviewed-by: Minwoo Im <minwoo.im.dev@gmail.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <keith.busch@intel.com>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h
drivers/nvme/host/pci.c