]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: ensure poll commands clear ->sqe
authorJens Axboe <axboe@kernel.dk>
Wed, 18 Sep 2019 17:18:23 +0000 (11:18 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 18 Sep 2019 17:19:26 +0000 (11:19 -0600)
commit97160c978cdb047eb9982302fecdf3bb07529ef7
tree0c4953ff478f9a93ea337e637b5ede612830dd8d
parente331cfc5a61bd1512b599fd7c47adb82d41203d3
io_uring: ensure poll commands clear ->sqe

If we end up getting woken in poll (due to a signal), then we may need
to punt the poll request to an async worker. When we do that, we look up
the list to queue at, deferefencing req->submit.sqe, however that is
only set for requests we initially decided to queue async.

This fixes a crash with poll command usage and wakeups that need to punt
to async context.

Fixes: f446977c4866 ("io_uring: limit parallelism of buffered writes")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c