Commit eb1f822
committed
ext4: enable the lazy init thread when remounting read/write
In commit a44be64 ("ext4: don't clear SB_RDONLY when remounting
r/w until quota is re-enabled") we defer clearing tyhe SB_RDONLY flag
in struct super. However, we didn't defer when we checked sb_rdonly()
to determine the lazy itable init thread should be enabled, with the
next result that the lazy inode table initialization would not be
properly started. This can cause generic/231 to fail in ext4's
nojournal mode.
Fix this by moving when we decide to start or stop the lazy itable
init thread to after we clear the SB_RDONLY flag when we are
remounting the file system read/write.
Fixes a44be64 ("ext4: don't clear SB_RDONLY when remounting r/w until...")
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Link: https://lore.kernel.org/r/20230527035729.1001605-1-tytso@mit.edu
Signed-off-by: Theodore Ts'o <tytso@mit.edu>1 parent 1077b2d commit eb1f822
1 file changed
+12
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6588 | 6588 | | |
6589 | 6589 | | |
6590 | 6590 | | |
6591 | | - | |
6592 | | - | |
6593 | | - | |
6594 | | - | |
6595 | | - | |
6596 | | - | |
6597 | | - | |
6598 | | - | |
6599 | | - | |
6600 | | - | |
6601 | | - | |
6602 | | - | |
6603 | 6591 | | |
6604 | 6592 | | |
6605 | 6593 | | |
| |||
6637 | 6625 | | |
6638 | 6626 | | |
6639 | 6627 | | |
| 6628 | + | |
| 6629 | + | |
| 6630 | + | |
| 6631 | + | |
| 6632 | + | |
| 6633 | + | |
| 6634 | + | |
| 6635 | + | |
| 6636 | + | |
| 6637 | + | |
| 6638 | + | |
| 6639 | + | |
6640 | 6640 | | |
6641 | 6641 | | |
6642 | 6642 | | |
| |||
0 commit comments