From: Tejun Heo Date: Fri, 13 May 2005 15:46:08 +0000 (+0900) Subject: [SCSI] remove a timer race in scsi_queue_insert() X-Git-Tag: v2.6.13-rc1~90^2~583^2~62^2^2~27^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8c37e7b9a619855e05d5d4e56c68f799b1f539c;p=pandora-kernel.git [SCSI] remove a timer race in scsi_queue_insert() scsi_queue_insert() has four callers. Three callers call with timer disabled and one (the second invocation in scsi_dispatch_cmd()) calls with timer activated. scsi_queue_insert() used to always call scsi_delete_timer() and ignore the return value. This results in race with timer expiration. Remove scsi_delete_timer() call from scsi_queue_insert() and make the caller delete timer and check the return value. Signed-off-by: Tejun Heo Signed-off-by: James Bottomley --- Reading git-diff-tree failed