]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: fix wrong condition to grab uring lock
authorHao Xu <haoxu@linux.alibaba.com>
Thu, 14 Oct 2021 14:04:00 +0000 (22:04 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 14 Oct 2021 15:06:11 +0000 (09:06 -0600)
commit8f428d4c5768c5b5f6566bccfc9ce3c5b812bb0b
tree7930f223e94c3206b1c4115334184ed06a3813c0
parentc726b186bff77414d476121eb76c76c2e01e89a3
io_uring: fix wrong condition to grab uring lock

Grab uring lock when we are in io-worker rather than in the original
or system-wq context since we already hold it in these two situation.

Signed-off-by: Hao Xu <haoxu@linux.alibaba.com>
Fixes: 6b7e5ce7f2d1 ("io_uring: move iopoll reissue into regular IO path")
Link: https://lore.kernel.org/r/20211014140400.50235-1-haoxu@linux.alibaba.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c