SCSI: fix locking around blk_abort_request()
commita414b72407d6729915dc1af4c21f1c40d328d7da
authorTejun Heo <tj@kernel.org>
Thu, 15 Apr 2010 00:00:08 +0000 (15 09:00 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 12 May 2010 21:57:16 +0000 (12 14:57 -0700)
tree4ca2d423866b291edc0876a057cbc90d81e0461a
parent5a1b8c2d73537fcae20b9d31d2e46504b64d4f52
SCSI: fix locking around blk_abort_request()

commit 70b25f890ce9f0520c64075ce9225a5b020a513e upstream.

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>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/libsas/sas_ata.c
drivers/scsi/libsas/sas_scsi_host.c