io_uring: don't punt files update to io-wq unconditionally

There's no reason to punt it unconditionally, we just need to ensure that
the submit lock grabbing is conditional.

Fixes: 05f3fb3c5397 ("io_uring: avoid ring quiesce for fixed file set unregister and update")
Signed-off-by: Jens Axboe <axboe@kernel.dk>

+2 -5
+2 -5
fs/io_uring.c
··· 6340 6340 struct io_uring_rsrc_update2 up; 6341 6341 int ret; 6342 6342 6343 - if (issue_flags & IO_URING_F_NONBLOCK) 6344 - return -EAGAIN; 6345 - 6346 6343 up.offset = req->rsrc_update.offset; 6347 6344 up.data = req->rsrc_update.arg; 6348 6345 up.nr = 0; 6349 6346 up.tags = 0; 6350 6347 up.resv = 0; 6351 6348 6352 - mutex_lock(&ctx->uring_lock); 6349 + io_ring_submit_lock(ctx, !(issue_flags & IO_URING_F_NONBLOCK)); 6353 6350 ret = __io_register_rsrc_update(ctx, IORING_RSRC_FILE, 6354 6351 &up, req->rsrc_update.nr_args); 6355 - mutex_unlock(&ctx->uring_lock); 6352 + io_ring_submit_unlock(ctx, !(issue_flags & IO_URING_F_NONBLOCK)); 6356 6353 6357 6354 if (ret < 0) 6358 6355 req_set_fail(req);