]> 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)
commit5bed9cd0b5251747a2236f0eb691eee89d42222b
tree498a25887da9a912ce5f70af31804a12ef207e4e
parent5bb74e32cf5b85f33ac59714ba52402abf3cb003
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