]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/block/nvme-core.c
NVMe: Fix nvmeq waitqueue entry initialization
authorKeith Busch <keith.busch@intel.com>
Wed, 10 Sep 2014 21:48:47 +0000 (15:48 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 4 Nov 2014 20:17:09 +0000 (13:17 -0700)
commit7be50e93fbc281967589a04be5b1125539b0d0e2
tree264afa924cc6b7bf5d24efd5459c2eab7b51a0f4
parentb4ff9c8ddb6f0cec99a53ab26a5aa2ed0162c472
NVMe: Fix nvmeq waitqueue entry initialization

We need to update the nvme queue's wait_queue_t entry during each
initialization since the nvme_thread may be ended and restarted when
the device is reset. If a device reset occurs during a large amount
of buffered IO, it would take a lot longer to complete the outstanding
requests due to the 1 second polling instead of waking up as completions
occur.

Fixes: b9afca3efb18a9b8392cb544a3e29e8b1168400c
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nvme-core.c