io_uring: re-assign files with ring fd/file for SQPOLL switch
authorJens Axboe <axboe@kernel.dk>
Thu, 10 Sep 2020 18:00:54 +0000 (12:00 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 11 Sep 2020 11:00:02 +0000 (05:00 -0600)
commitd057c3cdafc3e389647973f6607e05e0d4c3bb09
treea93dfe38a24d52066dc74a106b650f1073758f71
parente2384342e6be629bf4e01fc24e74cfd3a722bd27
io_uring: re-assign files with ring fd/file for SQPOLL switch

If we saw a ring flush and noted that we need to reassign the ring fd
and file, then we also need to do the same for the file table.

Fixes: 67b08c1c9ffb ("io_uring: ensure IOSQE_ASYNC file table grabbing works with SQPOLL")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c