https://github.com/torvalds/linux
Revision e30349d27e093f32ef517b5416d9dce1998d4676 authored by Tejun Heo on 02 July 2006, 18:02:15 UTC, committed by Jeff Garzik on 06 July 2006, 02:05:34 UTC
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 <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
1 parent 0662c58
History
Tip revision: e30349d27e093f32ef517b5416d9dce1998d4676 authored by Tejun Heo on 02 July 2006, 18:02:15 UTC
[PATCH] libata: replace ap_lock w/ ap->lock in ata_scsi_error()
Tip revision: e30349d
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 462 bytes
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 87.5 KB
Kbuild -rw-r--r-- 1.2 KB
MAINTAINERS -rw-r--r-- 69.5 KB
Makefile -rw-r--r-- 46.1 KB
README -rw-r--r-- 16.2 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top