OSDN Git Service

aio: don't zero entire aio_kiocb aio_get_req()
authorJens Axboe <axboe@kernel.dk>
Tue, 4 Dec 2018 16:44:49 +0000 (09:44 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 18 Dec 2018 15:29:58 +0000 (08:29 -0700)
commit2bc4ca9bb600cbe36941da2b2a67189fc4302a04
tree027c0368c3e9235684a631780ff072f9542ee329
parent432c79978c33ecef91b1b04cea6936c20810da29
aio: don't zero entire aio_kiocb aio_get_req()

It's 192 bytes, fairly substantial. Most items don't need to be cleared,
especially not upfront. Clear the ones we do need to clear, and leave
the other ones for setup when the iocb is prepared and submitted.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/aio.c