diff options
author | Kent Overstreet | 2013-05-10 00:36:07 +0200 |
---|---|---|
committer | Benjamin LaHaise | 2013-07-30 17:53:11 +0200 |
commit | 5ffac122dbda89fbb29885f35a5d47b0edb8936d (patch) | |
tree | 35c6ee1e0b439983ba6d163e37d7cc66783fef9f /sound/soc/davinci/davinci-vcif.c | |
parent | aio: io_cancel() no longer returns the io_event (diff) | |
download | kernel-qcow2-linux-5ffac122dbda89fbb29885f35a5d47b0edb8936d.tar.gz kernel-qcow2-linux-5ffac122dbda89fbb29885f35a5d47b0edb8936d.tar.xz kernel-qcow2-linux-5ffac122dbda89fbb29885f35a5d47b0edb8936d.zip |
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 'sound/soc/davinci/davinci-vcif.c')
0 files changed, 0 insertions, 0 deletions