[SCSI] fix locking around blk_abort_request()
authorTejun Heo <tj@kernel.org>
Thu, 15 Apr 2010 00:00:08 +0000 (09:00 +0900)
committerJames Bottomley <James.Bottomley@suse.de>
Sat, 1 May 2010 19:17:19 +0000 (14:17 -0500)
commit70b25f890ce9f0520c64075ce9225a5b020a513e
treec97c211ee93b11c6ebed99c81979bf81773c18d2
parent9a908c1aa4d3898f62e2cb8af6936b16503ab3e6
[SCSI] fix locking around blk_abort_request()

blk_abort_request() expects queue lock to be held by the caller.
Grab it before calling the function.

Lack of this synchronization led to infinite loop on corrupt
q->timeout_list.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: stable@kernel.org
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/libsas/sas_ata.c
drivers/scsi/libsas/sas_scsi_host.c