]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ovl: punt write aio completion to workqueue
authorAmir Goldstein <amir73il@gmail.com>
Tue, 22 Aug 2023 17:50:59 +0000 (20:50 +0300)
committerAmir Goldstein <amir73il@gmail.com>
Mon, 30 Oct 2023 22:12:54 +0000 (00:12 +0200)
commit389a4a4a19851211bb9c40d31c664591fb206f69
tree09e00f277c9026cb2a1a60dfae0a366cb2f06695
parent5f034d34737e8c440bbbd13e5ef283793d841140
ovl: punt write aio completion to workqueue

We want to protect concurrent updates of ovl inode size and mtime
(i.e. ovl_copyattr()) from aio completion context.

Punt write aio completion to a workqueue so that we can protect
ovl_copyattr() with a spinlock.

Export sb_init_dio_done_wq(), so that overlayfs can use its own
dio workqueue to punt aio completions.

Suggested-by: Jens Axboe <axboe@kernel.dk>
Link: https://lore.kernel.org/r/8620dfd3-372d-4ae0-aa3f-2fe97dda1bca@kernel.dk/
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
fs/overlayfs/file.c
fs/super.c