From: Matthew Wilcox Date: Fri, 20 May 2011 13:34:43 +0000 (-0400) Subject: NVMe: Add the nvme thread to the wait queue before waking it up X-Git-Tag: v3.3-rc1~16^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eac623ba7a91474a688eb5d0fcd0eaa6a56dc41c;p=pandora-kernel.git 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: Matthew Wilcox --- Reading git-diff-tree failed