NFS: Replace flush_scheduled_work with cancel_work_sync() and friends
Trond Myklebust authored

This will avoid deadlocks of the form:

stack backtrace:
 [<c0104fda>] show_trace_log_lvl+0x1a/0x30
 [<c0105c02>] show_trace+0x12/0x20
 [<c0105d15>] dump_stack+0x15/0x20
 [<c013ee42>] __lock_acquire+0xc22/0x1030
 [<c013f2b1>] lock_acquire+0x61/0x80
 [<c012edd9>] flush_workqueue+0x49/0x70
 [<c012ee0d>] flush_scheduled_work+0xd/0x10
 [<dcf55c0c>] nfs_release_automount_timer+0x2c/0x30 [nfs]
 [<dcf45d8e>] nfs_free_server+0x9e/0xd0 [nfs]
 [<dcf4e626>] nfs_kill_super+0x16/0x20 [nfs]
 [<c017b38d>] deactivate_super+0x7d/0xa0
 [<c018f94b>] mntput_no_expire+0x4b/0x80
 [<c018fd94>] expire_mount_list+0xe4/0x140
 [<c0191219>] mark_mounts_for_expiry+0x99/0xb0
 [<dcf55d1d>] nfs_expire_automounts+0xd/0x40 [nfs]
 [<c012e61b>] run_workqueue+0x12b/0x1e0
 [<c012f05b>] worker_thread+0x9b/0x100
 [<c0131c72>] kthread+0x42/0x70
 [<c0104c0f>] kernel_thread_helper+0x7/0x18
 =======================
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
3d39c691
Name Last commit Last update
..
Makefile NFS: Remake nfsroot_mount as a permanent part of NFS client
callback.c Freezer: make kernel threads nonfreezable by default
callback.h NFS: Fix more sparse warnings
callback_proc.c [PATCH] fs/nfs/callback* passes error values big-endian
callback_xdr.c NFSv4: debug print ntohl(status) in nfs client callback xdr code
client.c Make NFS client use seq_list_xxx helpers
delegation.c NFSv4: Don't call put_rpccred() from an rcu callback
delegation.h NFSv4: Use RCU to protect delegations
dir.c SUNRPC: Clean up the sillyrename code
direct.c mm: Remove slab destructors from kmem_cache_create().
file.c locks: make posix_test_lock() interface more consistent
getroot.c NFS: Kill the obsolete NFS_PARANOIA
idmap.c NFS: use __set_current_state()
inode.c NFS: Fix put_nfs_open_context
internal.h NFS: Clean-up: use correct type when converting NFS blocks to local blocks
iostat.h NFSv4: Fix an oops in nfs4_fill_super
mount_clnt.c NFS: Improve debugging output in NFS in-kernel mount client
namespace.c NFS: Replace flush_scheduled_work with cancel_work_sync() and friends
nfs2xdr.c NFS: Introduce struct nfs_removeargs+nfs_removeres
nfs3acl.c NFSv3: Client-side nfsacl caching fix
nfs3proc.c SUNRPC: Clean up the sillyrename code
nfs3xdr.c NFS: Introduce struct nfs_removeargs+nfs_removeres
nfs4_fs.h NFSv4: 'constify' lookup arguments.
nfs4namespace.c NFSv4: /proc/mounts displays the wrong server name for referrals
nfs4proc.c NFS: Fix NFSv4 open stateid regressions
nfs4renewd.c NFS: Replace flush_scheduled_work with cancel_work_sync() and friends
nfs4state.c NFSv4: Fix a locking regression in nfs4_set_mode_locked()
nfs4xdr.c NFS: Introduce struct nfs_removeargs+nfs_removeres
nfsroot.c NFS: Remake nfsroot_mount as a permanent part of NFS client
pagelist.c mm: Remove slab destructors from kmem_cache_create().
proc.c SUNRPC: Clean up the sillyrename code
read.c mm: Remove slab destructors from kmem_cache_create().
super.c fix broken handling of port=... in NFS option parsing
symlink.c header cleaning: don't include smp_lock.h when not used
sysctl.c [PATCH] nfs: fix congestion control
unlink.c SUNRPC: Clean up the sillyrename code
write.c mm: Remove slab destructors from kmem_cache_create().