Skip to content

Commit 576d18e

Browse files
committed
ext4: shutdown should not prevent get_write_access
The ext4 forced shutdown flag needs to prevent new handles from being started, but it needs to allow existing handles to complete. So the forced shutdown flag should not force ext4_journal_get_write_access to fail. Signed-off-by: Theodore Ts'o <[email protected]> Cc: [email protected]
1 parent ed65b00 commit 576d18e

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

fs/ext4/ext4_jbd2.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -166,13 +166,6 @@ int __ext4_journal_get_write_access(const char *where, unsigned int line,
166166
might_sleep();
167167

168168
if (ext4_handle_valid(handle)) {
169-
struct super_block *sb;
170-
171-
sb = handle->h_transaction->t_journal->j_private;
172-
if (unlikely(ext4_forced_shutdown(EXT4_SB(sb)))) {
173-
jbd2_journal_abort_handle(handle);
174-
return -EIO;
175-
}
176169
err = jbd2_journal_get_write_access(handle, bh);
177170
if (err)
178171
ext4_journal_abort_handle(where, line, __func__, bh,

0 commit comments

Comments
 (0)