aboutsummaryrefslogtreecommitdiff
path: root/lib/cpu-notifier-error-inject.c
diff options
context:
space:
mode:
authorAndi Kleen <[email protected]>2009-09-18 13:05:47 -0700
committerAl Viro <[email protected]>2009-09-24 07:47:26 -0400
commitb12536c27043f1c21195e587eb59950428326e22 (patch)
tree6b498fc08174b16b9fa1f44cce5d08d884eec49b /lib/cpu-notifier-error-inject.c
parent22fe404218156328a27e66349b1175cd0baa4990 (diff)
vfs: optimization for touch_atime()
Some benchmark testing shows touch_atime to be high up in profile logs for IO intensive workloads. Most likely that's due to the lock in mnt_want_write(). Unfortunately touch_atime first takes the lock, and then does all the other tests that could avoid atime updates (like noatime or relatime). Do it the other way round -- first try to avoid the update and only then if that didn't succeed take the lock. That works because none of the atime avoidance tests rely on locking. This also eliminates a goto. Signed-off-by: Andi Kleen <[email protected]> Cc: Christoph Hellwig <[email protected]> Reviewed-by: Valerie Aurora <[email protected]> Cc: Al Viro <[email protected]> Cc: Dave Hansen <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions