From: Arjan van de Ven Date: Wed, 1 May 2013 20:38:23 +0000 (-0400) Subject: NVMe: Set TASK_INTERRUPTIBLE before processing queues X-Git-Tag: v3.10-rc1~21^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=564a232c059913d91b491e04c2b2d670b8f94615;p=pandora-kernel.git NVMe: Set TASK_INTERRUPTIBLE before processing queues The kthread has two tasks; handling timeouts (for which it runs once per second), and submitting queued BIOs. If a BIO happens to be queued after the thread has processed the queue but before it calls schedule_timeout(), the thread will sleep for a second before submitting it, which can cause performance problems in some rare cases (that will become more common in a subsequent patch). Signed-off-by: Arjan van de Ven Tested-by: Keith Busch Signed-off-by: Matthew Wilcox --- Reading git-diff-tree failed