Qilin Tan
9214a5484e
f2fs: fix iostat lock protection
...
commit 144f1cd40bf91fb3ac1d41806470756ce774f389 upstream.
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>
Cc: Daniel Rosenberg <drosen@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-06-14 11:09:31 +02:00
..
2020-09-14 11:15:37 -07:00
2020-05-08 06:55:55 -07:00
2023-05-30 12:57:49 +01:00
2023-05-17 11:47:49 +02:00
2023-05-30 12:57:49 +01:00
2021-01-06 14:56:54 +01:00
2021-09-18 13:40:13 +02:00
2023-01-24 07:19:56 +01:00
2023-05-17 11:47:49 +02:00
2023-05-17 11:47:49 +02:00
2023-02-15 17:22:21 +01:00
2020-09-11 11:11:15 -07:00
2020-06-09 11:28:59 -07:00
2023-03-11 16:40:09 +01:00
2022-06-09 10:21:21 +02:00
2020-05-11 20:36:46 -07:00
2020-01-17 16:48:07 -08:00
2023-05-17 11:48:15 +02:00
2022-08-25 11:38:21 +02:00
2021-01-06 14:56:54 +01:00
2022-10-26 13:25:12 +02:00
2023-05-17 11:47:49 +02:00
2023-05-17 11:47:49 +02:00
2021-01-06 14:56:54 +01:00
2023-05-17 11:47:49 +02:00
2023-06-14 11:09:31 +02:00
2019-03-05 19:58:06 -08:00
2020-05-08 06:55:55 -07:00
2023-03-11 16:40:09 +01:00
2021-12-29 12:26:05 +01:00
2020-05-26 18:56:10 -07:00