From: James Bottomley Date: Sat, 30 May 2009 04:43:49 +0000 (+0200) Subject: block: fix an oops on BLKPREP_KILL X-Git-Tag: v2.6.31-rc1~389^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c143dc903d7c0b15f5052e00b2c7de33a8b4299c;p=pandora-kernel.git block: fix an oops on BLKPREP_KILL Doing a bit of torture testing, I ran across a BUG in the block subsystem (at blk-core.c:2048): the test for if the request is queued. It turns out the trigger was a BLKPREP_KILL coming out of the SCSI prep function. Currently for BLKPREP_KILL requests, we send them straight into __blk_end_request_all() with an error, but they've never been dequeued, so they trip the bug. Fix this by starting requests before killing them. Signed-off-by: James Bottomley Signed-off-by: Jens Axboe --- Reading git-diff-tree failed