]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: remove setting REQ_F_MUST_PUNT in rw
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 21 Jun 2020 10:09:50 +0000 (13:09 +0300)
committerJens Axboe <axboe@kernel.dk>
Mon, 22 Jun 2020 02:46:03 +0000 (20:46 -0600)
commitff12443a0624a22f1d10152fad724c39de46f506
treef26a29117c19fa32ff615d60060b66f816b6cdce
parentb5b1b626daf4ded977aeaafe7361b7322f2e5cc2
io_uring: remove setting REQ_F_MUST_PUNT in rw

io_{read,write}() {
...
copy_iov: // prep async
   if (!(flags & REQ_F_NOWAIT) && !file_can_poll(file))
flags |= REQ_F_MUST_PUNT;
}

REQ_F_MUST_PUNT there is pointless, because if it happens then
REQ_F_NOWAIT is known to be _not_ set, and the request will go
async path in __io_queue_sqe() anyway. file_can_poll() check
is also repeated in arm_poll*(), so don't need it.

Remove the mentioned assignment REQ_F_MUST_PUNT in preparation
for killing the flag.

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