]> git.karo-electronics.de Git - karo-tx-linux.git/commit
SCSI: fix locking around blk_abort_request()
authorTejun Heo <tj@kernel.org>
Thu, 15 Apr 2010 00:00:08 +0000 (09:00 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 12 May 2010 22:03:11 +0000 (15:03 -0700)
commit5a904363da074781118bc161a1149494bf195128
treedb91be098f86dcde432b70df86179ad87728ae0e
parent3054cd85318d5bcf403352746bda26287b1efe9f
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