• Cong Wang's avatar
    nfs: fix kernel warning when removing proc entry · 943be0b1
    Cong Wang authored
    commit 21e81002 upstream.
    
    I saw the following kernel warning:
    
    [ 1852.321222] ------------[ cut here ]------------
    [ 1852.326527] WARNING: CPU: 0 PID: 118 at fs/proc/generic.c:521 remove_proc_entry+0x154/0x16b()
    [ 1852.335630] remove_proc_entry: removing non-empty directory 'fs/nfsfs', leaking at least 'volumes'
    [ 1852.344084] CPU: 0 PID: 118 Comm: kworker/u8:2 Not tainted 3.16.0+ #540
    [ 1852.350036] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
    [ 1852.354992] Workqueue: netns cleanup_net
    [ 1852.358701]  0000000000000000 ffff880116f2fbd0 ffffffff819c03e9 ffff880116f2fc18
    [ 1852.366474]  ffff880116f2fc08 ffffffff810744ee ffffffff811e0e6e ffff8800d4e96238
    [ 1852.373507]  ffffffff81dbe665 ffff8800d46a5948 0000000000000005 ffff880116f2fc68
    [ 1852.380224] Call Trace:
    [ 1852.381976]  [<ffffffff819c03e9>] dump_stack+0x4d/0x66
    [ 1852.385495]  [<ffffffff810744ee>] warn_slowpath_common+0x7a/0x93
    [ 1852.389869]  [<ffffffff811e0e6e>...
    943be0b1
client.c 37.3 KB