]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
GFS2: Prevent BUG from occurring when normal Withdraws occur
authorBob Peterson <rpeterso@redhat.com>
Fri, 3 Mar 2017 17:37:14 +0000 (12:37 -0500)
committerBob Peterson <rpeterso@redhat.com>
Thu, 16 Mar 2017 12:18:35 +0000 (08:18 -0400)
commit0d1c7ae9d849bdd3146e322f1e46fd3300e66d5f
treeedf72c572f1b7d42fcf817f5e6e1d93f8c93037b
parent69eea5a4ab9c705496e912b55a9d312325de19e6
GFS2: Prevent BUG from occurring when normal Withdraws occur

When the GFS2 file system withdraws due to metadata corruption, it
often has outstanding transactions in the journal and delayed work
queued for its glocks. This patch adds some new checks for a
withdrawn file system before proceeding with operations that would
obviously cause a BUG() to be triggered. That allows GFS2 to be
safely unmounted rather than cause the system to go down.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/glock.c
fs/gfs2/super.c