From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bob Peterson Date: Mon, 8 Oct 2018 16:10:01 -0400 (EDT) Subject: [Cluster-devel] [PATCH 2/2] GFS2: Flush the GFS2 delete workqueue before stopping the kernel threads In-Reply-To: <1539002191-40831-3-git-send-email-mark.syms@citrix.com> References: <1539002191-40831-1-git-send-email-mark.syms@citrix.com> <1539002191-40831-3-git-send-email-mark.syms@citrix.com> Message-ID: <1069219936.19268600.1539029401159.JavaMail.zimbra@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit ----- Original Message ----- > From: Tim Smith > > Flushing the workqueue can cause operations to happen which might > call gfs2_log_reserve(), or get stuck waiting for locks taken by such > operations. gfs2_log_reserve() can io_schedule(). If this happens, it > will never wake because the only thing which can wake it is gfs2_logd() > which was already stopped. > > This causes umount of a gfs2 filesystem to wedge permanently if, for > example, the umount immediately follows a large delete operation. > > When this occured, the following stack trace was obtained from the > umount command > > [] flush_workqueue+0x1c8/0x520 > [] gfs2_make_fs_ro+0x69/0x160 [gfs2] > [] gfs2_put_super+0xa9/0x1c0 [gfs2] > [] generic_shutdown_super+0x6f/0x100 > [] kill_block_super+0x27/0x70 > [] gfs2_kill_sb+0x71/0x80 [gfs2] > [] deactivate_locked_super+0x3b/0x70 > [] deactivate_super+0x59/0x60 > [] cleanup_mnt+0x58/0x80 > [] __cleanup_mnt+0x12/0x20 > [] task_work_run+0x7d/0xa0 > [] exit_to_usermode_loop+0x73/0x98 > [] syscall_return_slowpath+0x41/0x50 > [] int_ret_from_sys_call+0x25/0x8f > [] 0xffffffffffffffff > > Signed-off-by: Tim Smith > Signed-off-by: Mark Syms > --- Hi Mark, Tim, and all, I pushed patch 2/2 upstream. For now I'll hold off on 1/2 but keep it on my queue, pending our investigation. https://git.kernel.org/pub/scm/linux/kernel/git/gfs2/linux-gfs2.git/commit/fs/gfs2?h=for-next&id=b7f5a2cd27b76e96fdc6d77b060dfdd877c9d0a9 Regards, Bob Peterson