]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: avoid unnecessary io_wq_work copy for fast poll feature
authorXiaoguang Wang <xiaoguang.wang@linux.alibaba.com>
Wed, 10 Jun 2020 11:41:20 +0000 (19:41 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Jun 2020 23:58:46 +0000 (17:58 -0600)
commit0b82f920888a193f1c9a1a36e25eef8c99593f7f
tree498a25887da9a912ce5f70af31804a12ef207e4e
parent5c7e3c6543b4df60939a1ffdd6338f6190c896ef
io_uring: avoid unnecessary io_wq_work copy for fast poll feature

Basically IORING_OP_POLL_ADD command and async armed poll handlers
for regular commands don't touch io_wq_work, so only REQ_F_WORK_INITIALIZED
is set, can we do io_wq_work copy and restore.

Signed-off-by: Xiaoguang Wang <xiaoguang.wang@linux.alibaba.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c