io_uring: optimise io_init_req() flags setting
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 12 Feb 2021 18:41:17 +0000 (18:41 +0000)
committerJens Axboe <axboe@kernel.dk>
Fri, 12 Feb 2021 18:49:50 +0000 (11:49 -0700)
commit5be9ad1e4287e1742fd8d253267c86446441bdaf
tree632d27015921ea6a3fba0b983acbcba13eab9bf7
parentcdbff98223330cdb6c57ead1533ce066dddd61b7
io_uring: optimise io_init_req() flags setting

Invalid req->flags are tolerated by free/put well, avoid this dancing
needlessly presetting it to zero, and then not even resetting but
modifying it, i.e. "|=".

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c