summaryrefslogtreecommitdiffstats
path: root/fs/ext4
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-06-16 18:42:49 -0600
committerJens Axboe <axboe@kernel.dk>2020-06-17 12:49:16 -0600
commit9d8426a09195e2dcf2aa249de2aaadd792d491c7 (patch)
tree869fea84308ffa827fcd92a85d6fbe55686213a9 /fs/ext4
parentbbde017a32b32d2fa8d5fddca25fade20132abf8 (diff)
downloadlinux-9d8426a09195e2dcf2aa249de2aaadd792d491c7.tar.bz2
io_uring: acquire 'mm' for task_work for SQPOLL
If we're unlucky with timing, we could be running task_work after having dropped the memory context in the sq thread. Since dropping the context requires a runnable task state, we cannot reliably drop it as part of our check-for-work loop in io_sq_thread(). Instead, abstract out the mm acquire for the sq thread into a helper, and call it from the async task work handler. Cc: stable@vger.kernel.org # v5.7 Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/ext4')
0 files changed, 0 insertions, 0 deletions