android_kernel_samsung_a7y1.../fs/gfs2
Tim Smith 2fe4a8d80d GFS2: Flush the GFS2 delete workqueue before stopping the kernel threads
[ Upstream commit 1eb8d7387908022951792a46fa040ad3942b3b08 ]

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

[<ffffffff81087968>] flush_workqueue+0x1c8/0x520
[<ffffffffa0666e29>] gfs2_make_fs_ro+0x69/0x160 [gfs2]
[<ffffffffa0667279>] gfs2_put_super+0xa9/0x1c0 [gfs2]
[<ffffffff811b7edf>] generic_shutdown_super+0x6f/0x100
[<ffffffff811b7ff7>] kill_block_super+0x27/0x70
[<ffffffffa0656a71>] gfs2_kill_sb+0x71/0x80 [gfs2]
[<ffffffff811b792b>] deactivate_locked_super+0x3b/0x70
[<ffffffff811b79b9>] deactivate_super+0x59/0x60
[<ffffffff811d2998>] cleanup_mnt+0x58/0x80
[<ffffffff811d2a12>] __cleanup_mnt+0x12/0x20
[<ffffffff8108c87d>] task_work_run+0x7d/0xa0
[<ffffffff8106d7d9>] exit_to_usermode_loop+0x73/0x98
[<ffffffff81003961>] syscall_return_slowpath+0x41/0x50
[<ffffffff815a594c>] int_ret_from_sys_call+0x25/0x8f
[<ffffffffffffffff>] 0xffffffffffffffff

Signed-off-by: Tim Smith <tim.smith@citrix.com>
Signed-off-by: Mark Syms <mark.syms@citrix.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-04-07 12:33:12 +02:00
..
acl.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
acl.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
aops.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bmap.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bmap.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dentry.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dir.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dir.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
export.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
file.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
gfs2.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
glock.c gfs2: Fix lru_count going negative 2020-04-06 18:15:29 +02:00
glock.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
glops.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
glops.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
incore.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
inode.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
inode.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
lock_dlm.c gfs2: Fix sign extension bug in gfs2_update_stats 2020-04-06 18:15:04 +02:00
log.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
log.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
lops.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
lops.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
main.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
meta_io.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
meta_io.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ops_fstype.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
quota.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
quota.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
recovery.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
recovery.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
rgrp.c gfs2: Don't set GFS2_RDF_UPTODATE when the lvb is updated 2020-04-07 12:26:44 +02:00
rgrp.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
super.c GFS2: Flush the GFS2 delete workqueue before stopping the kernel threads 2020-04-07 12:33:12 +02:00
super.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sys.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sys.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace_gfs2.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trans.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trans.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
util.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
util.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xattr.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xattr.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30