From: James Bottomley Date: Tue, 2 Jul 2013 13:05:26 +0000 (+0200) Subject: [SCSI] Fix race between starved list and device removal X-Git-Tag: v3.11-rc1~6^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2eb7244bc9e4fd130fc8a961224968e22ba48ee;p=pandora-kernel.git [SCSI] Fix race between starved list and device removal scsi_run_queue() examines all SCSI devices that are present on the starved list. Since scsi_run_queue() unlocks the SCSI host lock a SCSI device can get removed after it has been removed from the starved list and before its queue is run. Protect against that race condition by holding a reference on the queue while running it. Reported-by: Chanho Min Reviewed-by: Bart Van Assche Signed-off-by: James Bottomley --- Reading git-diff-tree failed