• T
    [PATCH] libata: replace ap_lock w/ ap->lock in ata_scsi_error() · e30349d2
    Tejun Heo 提交于
    ap_lock was used because &ap->host_set->lock was too long and used a
    lot.  Now that &ap->host_set->lock is replaced with ap->lock, there's
    no reason to keep ap_lock.
    
    [ed. note: that's not entirely true.  ap_lock is a local variable,
    caching the results of a de-ref.  In theory, if the compiler is smart
    enough, this patch is cosmetic.  However, since this is not a fast
    path (it is the error path), this patch is nonetheless acceptable,
    even though it _may_ introduce a performance regression.]
    Signed-off-by: NTejun Heo <htejun@gmail.com>
    Signed-off-by: NJeff Garzik <jeff@garzik.org>
    e30349d2
libata-eh.c 45.5 KB