Commit a690e5f
btrfs: mark resumed async balance as writing
When btrfs balance is interrupted with umount, the background balance
resumes on the next mount. There is a potential deadlock with FS freezing
here like as described in commit 2655978 ("btrfs: zoned: mark
relocation as writing"). Mark the process as sb_writing to avoid it.
Reviewed-by: Filipe Manana <fdmanana@suse.com>
CC: stable@vger.kernel.org # 4.9+
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>1 parent d03ae0d commit a690e5f
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4430 | 4430 | | |
4431 | 4431 | | |
4432 | 4432 | | |
| 4433 | + | |
4433 | 4434 | | |
4434 | 4435 | | |
4435 | 4436 | | |
4436 | 4437 | | |
| 4438 | + | |
4437 | 4439 | | |
4438 | 4440 | | |
4439 | 4441 | | |
| |||
0 commit comments