summaryrefslogtreecommitdiffstats
path: root/fs/dax.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-07-17 17:09:27 -0600
committerJens Axboe <axboe@kernel.dk>2020-07-17 19:41:05 -0600
commit807abcb0883439af5ead73f3308310453b97b624 (patch)
treee5716367b72f698c390168843b735aed0130c598 /fs/dax.c
parent681fda8d27a66f7e65ff7f2d200d7635e64a8d05 (diff)
downloadlinux-stable-807abcb0883439af5ead73f3308310453b97b624.tar.gz
linux-stable-807abcb0883439af5ead73f3308310453b97b624.tar.bz2
linux-stable-807abcb0883439af5ead73f3308310453b97b624.zip
io_uring: ensure double poll additions work with both request types
The double poll additions were centered around doing POLL_ADD on file descriptors that use more than one waitqueue (typically one for read, one for write) when being polled. However, it can also end up being triggered for when we use poll triggered retry. For that case, we cannot safely use req->io, as that could be used by the request type itself. Add a second io_poll_iocb pointer in the structure we allocate for poll based retry, and ensure we use the right one from the two paths. Fixes: 18bceab101ad ("io_uring: allow POLL_ADD with double poll_wait() users") Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/dax.c')
0 files changed, 0 insertions, 0 deletions