ext4: shutdown should not prevent get_write_access
authorTheodore Ts'o <tytso@mit.edu>
Mon, 19 Feb 2018 03:07:36 +0000 (22:07 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Apr 2018 07:36:30 +0000 (09:36 +0200)
commit7ebcea25968219b4ed9b27e5708e2b96c1718d86
treed23cc576f821c13fa6243fde28b269b1b5e8152a
parent867175f944857448b83cad1370e532a1ffda9e47
ext4: shutdown should not prevent get_write_access

commit 576d18ed60f5465110087c5e0eb1010de13e374d upstream.

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 <tytso@mit.edu>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/ext4_jbd2.c