diff options
author | Kent Overstreet <koverstreet@google.com> | 2013-05-09 15:36:07 -0700 |
---|---|---|
committer | Benjamin LaHaise <bcrl@kvack.org> | 2013-07-30 11:53:11 -0400 |
commit | 5ffac122dbda89fbb29885f35a5d47b0edb8936d (patch) | |
tree | 35c6ee1e0b439983ba6d163e37d7cc66783fef9f /fs/fs-writeback.c | |
parent | bec68faaf3ba74ed0dcd5dc3a881b30aec542973 (diff) | |
download | kernel_goldelico_gta04-5ffac122dbda89fbb29885f35a5d47b0edb8936d.zip kernel_goldelico_gta04-5ffac122dbda89fbb29885f35a5d47b0edb8936d.tar.gz kernel_goldelico_gta04-5ffac122dbda89fbb29885f35a5d47b0edb8936d.tar.bz2 |
aio: Don't use ctx->tail unnecessarily
aio_complete() (arguably) needs to keep its own trusted copy of the tail
pointer, but io_getevents() doesn't have to use it - it's already using
the head pointer from the ring buffer.
So convert it to use the tail from the ring buffer so it touches fewer
cachelines and doesn't contend with the cacheline aio_complete() needs.
Signed-off-by: Kent Overstreet <koverstreet@google.com>
Cc: Zach Brown <zab@redhat.com>
Cc: Felipe Balbi <balbi@ti.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Asai Thambi S P <asamymuthupa@micron.com>
Cc: Selvan Mani <smani@micron.com>
Cc: Sam Bradshaw <sbradshaw@micron.com>
Cc: Jeff Moyer <jmoyer@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Benjamin LaHaise <bcrl@kvack.org>
Signed-off-by: Benjamin LaHaise <bcrl@kvack.org>
Diffstat (limited to 'fs/fs-writeback.c')
0 files changed, 0 insertions, 0 deletions