diff options
author | Jens Axboe <axboe@kernel.dk> | 2019-12-15 22:13:43 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-12-17 19:57:20 -0700 |
commit | b7bb4f7da0a1a92f142697f1c9ce335e7a44f4b1 (patch) | |
tree | ecb67299672c337c0c0bef786cffb5f3fc3d5d25 /fs/char_dev.c | |
parent | 525b305d61ede489ce2118b000a5dabd6d869dac (diff) | |
download | linux-b7bb4f7da0a1a92f142697f1c9ce335e7a44f4b1.tar.bz2 |
io_uring: fix pre-prepped issue with force_nonblock == true
Some of these code paths assume that any force_nonblock == true issue
is not prepped, but that's not true if we did prep as part of link setup
earlier. Check if we already have an async context allocate before
setting up a new one.
Cleanup the async context setup in general, we have a lot of duplicated
code there.
Fixes: 03b1230ca12a ("io_uring: ensure async punted sendmsg/recvmsg requests copy data")
Fixes: f67676d160c6 ("io_uring: ensure async punted read/write requests copy iovec")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/char_dev.c')
0 files changed, 0 insertions, 0 deletions