]> 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)
commit733479a925babe75cdf554fecf46d65c5563f8e9
treeedf72c572f1b7d42fcf817f5e6e1d93f8c93037b
parent7d77843fc1b85a2a3e7b1669ae98eda5de8c3a87
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