OSDN Git Service

io_uring: punt splice async because of inode mutex
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 1 May 2020 14:09:38 +0000 (17:09 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 1 May 2020 14:50:57 +0000 (08:50 -0600)
commit2fb3e82284fca40afbde5351907f0a5b3be717f9
treef373b9b6706caa213245c7131d286f34e6000361
parent4ee3631451c9a62e6b6bc7ee51fb9a5b34e33509
io_uring: punt splice async because of inode mutex

Nonblocking do_splice() still may wait for some time on an inode mutex.
Let's play safe and always punt it async.

Reported-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c