]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] libata: fix eh locking
authorJames Bottomley <James.Bottomley@suse.de>
Sun, 23 Jan 2011 14:31:14 +0000 (08:31 -0600)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 13 Feb 2011 19:16:41 +0000 (13:16 -0600)
commit8eb499ee90dfc3bf604a18462bbbf57dc0ca0ae0
tree77494fc00d18ce36af9c784f5c865d73cd9528dc
parentec8b4552b947e50f08477025aa84eee4dd3d4cef
[SCSI] libata: fix eh locking

The SCSI host eh_cmd_q should be protected by the host lock (not the
port lock).  This probably doesn't matter that much at the moment,
since we try to serialise the add and eh pieces, but it might matter
in future for more convenient error handling.  Plus this switches
libata to the standard eh pattern where you lock, remove from the cmd
queue to a local list and unlock and then operate on the local list.

Cc: Tejun Heo <tj@kernel.org>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/ata/libata-eh.c