diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2022-11-23 14:33:41 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-11-23 20:45:31 +0300 |
commit | 1bec951c3809051f64a6957fe86d1b4786cc0313 (patch) | |
tree | 7964364c1c55aea528254617dc80a3c6e6fd14ad /io_uring/uring_cmd.c | |
parent | fa18fa2272c7469e470dcb7bf838ea50a25494ca (diff) | |
download | linux-1bec951c3809051f64a6957fe86d1b4786cc0313.tar.xz |
io_uring: iopoll protect complete_post
io_req_complete_post() may be used by iopoll enabled rings, grab locks
in this case. That requires to pass issue_flags to propagate the locking
state.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/cc6d854065c57c838ca8e8806f707a226b70fd2d.1669203009.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'io_uring/uring_cmd.c')
-rw-r--r-- | io_uring/uring_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_uring/uring_cmd.c b/io_uring/uring_cmd.c index e50de0b6b9f8..446a189b78b0 100644 --- a/io_uring/uring_cmd.c +++ b/io_uring/uring_cmd.c @@ -56,7 +56,7 @@ void io_uring_cmd_done(struct io_uring_cmd *ioucmd, ssize_t ret, ssize_t res2) /* order with io_iopoll_req_issued() checking ->iopoll_complete */ smp_store_release(&req->iopoll_completed, 1); else - __io_req_complete(req, 0); + io_req_complete_post(req, 0); } EXPORT_SYMBOL_GPL(io_uring_cmd_done); |