io_uring: only flush workqueues on fileset removal
authorJens Axboe <axboe@kernel.dk>
Wed, 9 Oct 2019 20:40:13 +0000 (14:40 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 9 Oct 2019 21:13:47 +0000 (15:13 -0600)
commit8a99734081775c012a4a6c442fdef0379fe52bdf
tree3e9ca80637271c130150c57dc958390b8fbb1255
parent6805b32ec2b0897eb180295385efe306e5ac3b3d
io_uring: only flush workqueues on fileset removal

We should not remove the workqueue, we just need to ensure that the
workqueues are synced. The workqueues are torn down on ctx removal.

Cc: stable@vger.kernel.org
Fixes: 6b06314c47e1 ("io_uring: add file set registration")
Reported-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c