From: Matthew Wilcox Date: Fri, 4 Feb 2011 21:03:56 +0000 (-0500) Subject: NVMe: Allow fatal signals to interrupt I/O X-Git-Tag: v3.3-rc1~16^2~78 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c0cf138d7789feb3f335f6f1d24ad8fc8b3a23f;p=pandora-kernel.git NVMe: Allow fatal signals to interrupt I/O If the user sends a fatal signal, sleeping in the TASK_KILLABLE state permits the task to be aborted. The only wrinkle is making sure that if/when the command completes later that it doesn't upset anything. Handle this by setting the data pointer to 0, and checking the value isn't NULL in the sync completion path. Eventually, bios can be cancelled through this path too. Note that the cmdid isn't freed to prevent reuse. We should also abort the command in the future, but this is a good start. Signed-off-by: Matthew Wilcox --- Reading git-diff-tree failed