1 ext4: eliminate sleep from shutdown ioctl
3 The msleep() when processing EXT4_GOING_FLAGS_NOLOGFLUSH was a hack to
4 avoid some races (that are now fixed), but in fact it introduced its
7 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
8 Cc: stable@vger.kernel.org
10 fs/ext4/ioctl.c | 4 +---
11 1 file changed, 1 insertion(+), 3 deletions(-)
13 diff --git a/fs/ext4/ioctl.c b/fs/ext4/ioctl.c
14 index 4d1b1575f8ac..16d3d1325f5b 100644
17 @@ -498,10 +498,8 @@ static int ext4_shutdown(struct super_block *sb, unsigned long arg)
19 case EXT4_GOING_FLAGS_NOLOGFLUSH:
20 set_bit(EXT4_FLAGS_SHUTDOWN, &sbi->s_ext4_flags);
21 - if (sbi->s_journal && !is_journal_aborted(sbi->s_journal)) {
23 + if (sbi->s_journal && !is_journal_aborted(sbi->s_journal))
24 jbd2_journal_abort(sbi->s_journal, 0);