summaryrefslogtreecommitdiff
path: root/fs/f2fs/f2fs.h
diff options
context:
space:
mode:
authorQilin Tan <qilin.tan@mediatek.com>2023-03-31 12:26:56 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2023-04-04 23:57:30 +0300
commit144f1cd40bf91fb3ac1d41806470756ce774f389 (patch)
tree8e977248445a1d4eb1408d33276da143e320d987 /fs/f2fs/f2fs.h
parentf26aaee60a9f14035c1a659b5b00a6c8767b4126 (diff)
downloadlinux-144f1cd40bf91fb3ac1d41806470756ce774f389.tar.xz
f2fs: fix iostat lock protection
Made iostat lock irq safe to avoid potentinal deadlock. Deadlock scenario: f2fs_attr_store -> f2fs_sbi_store -> _sbi_store -> spin_lock(sbi->iostat_lock) <interrupt request> -> scsi_end_request -> bio_endio -> f2fs_dio_read_end_io -> f2fs_update_iostat -> spin_lock_irqsave(sbi->iostat_lock) ===> Dead lock here Fixes: 61803e984307 ("f2fs: fix iostat related lock protection") Fixes: a1e09b03e6f5 ("f2fs: use iomap for direct I/O") Signed-off-by: Qilin Tan <qilin.tan@mediatek.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/f2fs.h')
0 files changed, 0 insertions, 0 deletions