diff options
author | Kent Overstreet <[email protected]> | 2013-05-09 15:36:07 -0700 |
---|---|---|
committer | Benjamin LaHaise <[email protected]> | 2013-07-30 11:53:11 -0400 |
commit | 5ffac122dbda89fbb29885f35a5d47b0edb8936d (patch) | |
tree | 35c6ee1e0b439983ba6d163e37d7cc66783fef9f /lib/mpi/mpiutil.c | |
parent | bec68faaf3ba74ed0dcd5dc3a881b30aec542973 (diff) |
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 <[email protected]>
Cc: Zach Brown <[email protected]>
Cc: Felipe Balbi <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Mark Fasheh <[email protected]>
Cc: Joel Becker <[email protected]>
Cc: Rusty Russell <[email protected]>
Cc: Jens Axboe <[email protected]>
Cc: Asai Thambi S P <[email protected]>
Cc: Selvan Mani <[email protected]>
Cc: Sam Bradshaw <[email protected]>
Cc: Jeff Moyer <[email protected]>
Cc: Al Viro <[email protected]>
Cc: Benjamin LaHaise <[email protected]>
Signed-off-by: Benjamin LaHaise <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions