• J
    [SCSI] libata: fix eh locking · 4451ef63
    James Bottomley 提交于
    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: NJames Bottomley <James.Bottomley@suse.de>
    4451ef63
libata-eh.c 104.5 KB