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)
commit405a5d2b2762f2a9813efdee93274d4e7bf607a1
tree498a25887da9a912ce5f70af31804a12ef207e4e
parent7cdaf587de7c6f494b8433fded19f7728e70e1ef
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