]> git.baikalelectronics.ru Git - kernel.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)
commitc01bfcc684be98449d2e46817d6757c28ea70796
treeedf72c572f1b7d42fcf817f5e6e1d93f8c93037b
parentd94eac583ff20dbd8246dca2aa4fc1381db362de
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