OSDN Git Service

aio: split out iocb copy from io_submit_one()
authorJens Axboe <axboe@kernel.dk>
Sat, 24 Nov 2018 21:46:14 +0000 (14:46 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 May 2019 07:58:58 +0000 (09:58 +0200)
commitd384f8b855a573ea301fd7f5558cc64cb22107e6
tree015c7eb643f679b1b5264bcabf12f2c642591837
parent4d677689742ab60d5be46e20708276368564427a
aio: split out iocb copy from io_submit_one()

commit 88a6f18b950e2e4dce57d31daa151105f4f3dcff upstream.

In preparation of handing in iocbs in a different fashion as well. Also
make it clear that the iocb being passed in isn't modified, by marking
it const throughout.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/aio.c