Skip to content
Commit eac623ba authored by Matthew Wilcox's avatar Matthew Wilcox
Browse files

NVMe: Add the nvme thread to the wait queue before waking it up



If the I/O was not completed by a single NVMe command, we add the
bio to the congestion list and wake up the kthread to resubmit it.
But the kthread calls remove_wait_queue() unconditionally, which
will oops if it's not on the wait queue.  So add the kthread to
the wait queue before waking it up.

Signed-off-by: default avatarMatthew Wilcox <matthew.r.wilcox@intel.com>
parent 6f0f5449
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment