Commit 1dbece9
ext4: protect ext4_release_dquot against freezing
[ Upstream commit 530fea2 ]
Protect ext4_release_dquot against freezing so that we
don't try to start a transaction when FS is frozen, leading
to warnings.
Further, avoid taking the freeze protection if a transaction
is already running so that we don't need end up in a deadlock
as described in
46e294e ext4: fix deadlock with fs freezing and EA inodes
Suggested-by: Jan Kara <jack@suse.cz>
Signed-off-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Reviewed-by: Baokun Li <libaokun1@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20241121123855.645335-3-ojaswin@linux.ibm.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 1263713 commit 1dbece9
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6933 | 6933 | | |
6934 | 6934 | | |
6935 | 6935 | | |
| 6936 | + | |
| 6937 | + | |
| 6938 | + | |
| 6939 | + | |
| 6940 | + | |
| 6941 | + | |
| 6942 | + | |
| 6943 | + | |
| 6944 | + | |
| 6945 | + | |
| 6946 | + | |
6936 | 6947 | | |
6937 | 6948 | | |
6938 | 6949 | | |
6939 | 6950 | | |
6940 | 6951 | | |
6941 | 6952 | | |
| 6953 | + | |
| 6954 | + | |
6942 | 6955 | | |
6943 | 6956 | | |
6944 | 6957 | | |
| |||
6949 | 6962 | | |
6950 | 6963 | | |
6951 | 6964 | | |
| 6965 | + | |
| 6966 | + | |
| 6967 | + | |
| 6968 | + | |
6952 | 6969 | | |
6953 | 6970 | | |
6954 | 6971 | | |
| |||
0 commit comments