From: Tejun Heo Date: Sun, 2 Jul 2006 18:02:15 +0000 (+0900) Subject: [PATCH] libata: replace ap_lock w/ ap->lock in ata_scsi_error() X-Git-Tag: v2.6.18-rc1~3^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e30349d27e093f32ef517b5416d9dce1998d4676;p=pandora-kernel.git [PATCH] libata: replace ap_lock w/ ap->lock in ata_scsi_error() 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: Tejun Heo Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed