Re: regression: nfs mount (even idle) eventually hangs server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Mike,

I think the problem is the nfsd4_state_shrinker_worker is being
scheduled to run multiple times. This trigger the WARN_ON_ONCE
in __queue_delayed_work.

Could you try the attached patch to see if it fixes this problem.
I tried to reproduce it on my test VMs but no success so I can't
verify the patch.

Thanks,
-Dai

On 12/22/22 10:28 PM, Mike Galbraith wrote:
On Fri, 2022-12-23 at 05:41 +0100, Mike Galbraith wrote:
On Thu, 2022-12-22 at 14:21 +0000, Chuck Lever III wrote:
So my question is whether you see a problem when only a1049eb47f20
is applied, or only when all three are applied?
Seemingly the latter.
Stuffing the other two into 6.1 sans a1049eb47f20 seems to agree that
the problem lies therein.

[ 1909.987616] WARNING: CPU: 7 PID: 78 at kernel/workqueue.c:1655 __queue_delayed_work+0x6a/0x90
[ 1909.987627] Modules linked in: netconsole(E) af_packet(E) ip6table_mangle(E) ip6table_raw(E) iptable_raw(E) bridge(E) stp(E) llc(E) iscsi_ibft(E) iscsi_boot_sysfs(E) rfkill(E) nfnetlink(E) ebtable_filter(E) ebtables(E) ip6table_filter(E) ip6_tables(E) iptable_filter(E) bpfilter(E) usblp(E) joydev(E) intel_rapl_msr(E) intel_rapl_common(E) snd_hda_codec_realtek(E) snd_hda_codec_generic(E) ledtrig_audio(E) snd_hda_codec_hdmi(E) x86_pkg_temp_thermal(E) intel_powerclamp(E) coretemp(E) snd_hda_intel(E) snd_intel_dspcfg(E) iTCO_wdt(E) at24(E) intel_pmc_bxt(E) regmap_i2c(E) mei_hdcp(E) iTCO_vendor_support(E) kvm_intel(E) snd_hda_codec(E) nls_iso8859_1(E) snd_hwdep(E) nls_cp437(E) snd_hda_core(E) kvm(E) snd_pcm(E) r8169(E) irqbypass(E) snd_timer(E) i2c_i801(E) realtek(E) pcspkr(E) mei_me(E) mdio_devres(E) i2c_smbus(E) snd(E) lpc_ich(E) mfd_core(E) libphy(E) soundcore(E) mei(E) thermal(E) fan(E) intel_smartconnect(E) nfsd(E) auth_rpcgss(E) nfs_acl(E) lockd(E) grace(E) sch_fq_codel(E) sunrpc(E[ 1909.987603] ------------[ cut here ]------------
)
[ 1909.987663]  fuse(E) configfs(E) ip_tables(E) x_tables(E) hid_logitech_hidpp(E) hid_logitech_dj(E) uas(E) usb_storage(E) hid_generic(E) usbhid(E) nouveau(E) i2c_algo_bit(E) drm_ttm_helper(E) ttm(E) drm_display_helper(E) crct10dif_pclmul(E) crc32_pclmul(E) drm_kms_helper(E) ghash_clmulni_intel(E) sha512_ssse3(E) syscopyarea(E) sha512_generic(E) sysfillrect(E) xhci_pci(E) sysimgblt(E) ahci(E) ehci_pci(E) aesni_intel(E) fb_sys_fops(E) crypto_simd(E) libahci(E) cryptd(E) xhci_hcd(E) ehci_hcd(E) drm(E) libata(E) cec(E) usbcore(E) usb_common(E) rc_core(E) video(E) wmi(E) button(E) sd_mod(E) t10_pi(E) crc64_rocksoft_generic(E) crc64_rocksoft(E) crc64(E) vfat(E) fat(E) virtio_blk(E) virtio_mmio(E) virtio(E) virtio_ring(E) ext4(E) crc32c_intel(E) crc16(E) mbcache(E) jbd2(E) loop(E) sg(E) dm_multipath(E) dm_mod(E) scsi_dh_rdac(E) scsi_dh_emc(E) scsi_dh_alua(E) scsi_mod(E) scsi_common(E) msr(E) efivarfs(E) autofs4(E)
[ 1909.987715] CPU: 7 PID: 78 Comm: kswapd0 Kdump: loaded Tainted: G            E      6.1.1-smpxx #8
[ 1909.987720] Hardware name: MEDION MS-7848/MS-7848, BIOS M7848W08.20C 09/23/2013
[ 1909.987723] RIP: 0010:__queue_delayed_work+0x6a/0x90
[ 1909.987729] Code: 50 48 01 c1 83 ff 08 48 89 4a 30 75 2c 4c 89 c7 e9 fb e7 06 00 e9 a6 e9 ff ff 0f 0b eb cc 0f 0b 48 81 7a 38 10 4d 09 81 74 aa <0f> 0b 48 8b 42 28 48 85 c0 74 a8 0f 0b eb a4 89 fe 4c 89 c7 e9 7d
[ 1909.987734] RSP: 0018:ffff888100ec7c78 EFLAGS: 00010007
[ 1909.987737] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
[ 1909.987740] RDX: ffff88810800ab48 RSI: ffff88818118d400 RDI: 0000000000000008
[ 1909.987743] RBP: ffff88810800ab48 R08: 0000000000000004 R09: 0000000000000000
[ 1909.987745] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000008
[ 1909.987748] R13: ffff88818118d400 R14: 0000000000000000 R15: ffff88810800ab10
[ 1909.987751] FS:  0000000000000000(0000) GS:ffff88840edc0000(0000) knlGS:0000000000000000
[ 1909.987754] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1909.987757] CR2: 00007f295eac7000 CR3: 0000000004010003 CR4: 00000000001706e0
[ 1909.987760] Call Trace:
[ 1909.987764]  <TASK>
[ 1909.987766]  mod_delayed_work_on+0x49/0x70
[ 1909.987772]  nfsd_courtesy_client_count+0x24/0x50 [nfsd]
[ 1909.987800]  shrink_slab.constprop.92+0x9d/0x370
[ 1909.987805]  shrink_node+0x1c5/0x420
[ 1909.987810]  balance_pgdat+0x25f/0x530
[ 1909.987814]  ? prepare_to_wait_event+0x120/0x120
[ 1909.987821]  kswapd+0x12c/0x360
[ 1909.987824]  ? prepare_to_wait_event+0x120/0x120
[ 1909.987830]  ? balance_pgdat+0x530/0x530
[ 1909.987834]  kthread+0xec/0x110
[ 1909.987840]  ? kthread_complete_and_exit+0x20/0x20
[ 1909.987844]  ret_from_fork+0x1f/0x30
[ 1909.987850]  </TASK>
[ 1909.987852] ---[ end trace 0000000000000000 ]---
[ 1909.987856] ------------[ cut here ]------------
[ 1909.987859] WARNING: CPU: 7 PID: 78 at kernel/workqueue.c:1657 __queue_delayed_work+0x5a/0x90
[ 1909.987863] Modules linked in: netconsole(E) af_packet(E) ip6table_mangle(E) ip6table_raw(E) iptable_raw(E) bridge(E) stp(E) llc(E) iscsi_ibft(E) iscsi_boot_sysfs(E) rfkill(E) nfnetlink(E) ebtable_filter(E) ebtables(E) ip6table_filter(E) ip6_tables(E) iptable_filter(E) bpfilter(E) usblp(E) joydev(E) intel_rapl_msr(E) intel_rapl_common(E) snd_hda_codec_realtek(E) snd_hda_codec_generic(E) ledtrig_audio(E) snd_hda_codec_hdmi(E) x86_pkg_temp_thermal(E) intel_powerclamp(E) coretemp(E) snd_hda_intel(E) snd_intel_dspcfg(E) iTCO_wdt(E) at24(E) intel_pmc_bxt(E) regmap_i2c(E) mei_hdcp(E) iTCO_vendor_support(E) kvm_intel(E) snd_hda_codec(E) nls_iso8859_1(E) snd_hwdep(E) nls_cp437(E) snd_hda_core(E) kvm(E) snd_pcm(E) r8169(E) irqbypass(E) snd_timer(E) i2c_i801(E) realtek(E) pcspkr(E) mei_me(E) mdio_devres(E) i2c_smbus(E) snd(E) lpc_ich(E) mfd_core(E) libphy(E) soundcore(E) mei(E) thermal(E) fan(E) intel_smartconnect(E) nfsd(E) auth_rpcgss(E) nfs_acl(E) lockd(E) grace(E) sch_fq_codel(E) sunrpc(E)
[ 1909.987889]  fuse(E) configfs(E) ip_tables(E) x_tables(E) hid_logitech_hidpp(E) hid_logitech_dj(E) uas(E) usb_storage(E) hid_generic(E) usbhid(E) nouveau(E) i2c_algo_bit(E) drm_ttm_helper(E) ttm(E) drm_display_helper(E) crct10dif_pclmul(E) crc32_pclmul(E) drm_kms_helper(E) ghash_clmulni_intel(E) sha512_ssse3(E) syscopyarea(E) sha512_generic(E) sysfillrect(E) xhci_pci(E) sysimgblt(E) ahci(E) ehci_pci(E) aesni_intel(E) fb_sys_fops(E) crypto_simd(E) libahci(E) cryptd(E) xhci_hcd(E) ehci_hcd(E) drm(E) libata(E) cec(E) usbcore(E) usb_common(E) rc_core(E) video(E) wmi(E) button(E) sd_mod(E) t10_pi(E) crc64_rocksoft_generic(E) crc64_rocksoft(E) crc64(E) vfat(E) fat(E) virtio_blk(E) virtio_mmio(E) virtio(E) virtio_ring(E) ext4(E) crc32c_intel(E) crc16(E) mbcache(E) jbd2(E) loop(E) sg(E) dm_multipath(E) dm_mod(E) scsi_dh_rdac(E) scsi_dh_emc(E) scsi_dh_alua(E) scsi_mod(E) scsi_common(E) msr(E) efivarfs(E) autofs4(E)
[ 1909.987931] CPU: 7 PID: 78 Comm: kswapd0 Kdump: loaded Tainted: G        W   E      6.1.1-smpxx #8
[ 1909.987934] Hardware name: MEDION MS-7848/MS-7848, BIOS M7848W08.20C 09/23/2013
[ 1909.987937] RIP: 0010:__queue_delayed_work+0x5a/0x90
[ 1909.987941] Code: 8b 05 3a 2c 17 01 4c 8d 42 20 48 89 72 48 89 7a 50 48 01 c1 83 ff 08 48 89 4a 30 75 2c 4c 89 c7 e9 fb e7 06 00 e9 a6 e9 ff ff <0f> 0b eb cc 0f 0b 48 81 7a 38 10 4d 09 81 74 aa 0f 0b 48 8b 42 28
[ 1909.987945] RSP: 0018:ffff888100ec7c78 EFLAGS: 00010003
[ 1909.987948] RAX: ffff88810800ab50 RBX: 0000000000000000 RCX: 0000000000000000
[ 1909.987950] RDX: ffff88810800ab48 RSI: ffff88818118d400 RDI: 0000000000000008
[ 1909.987954] RBP: ffff88810800ab48 R08: 0000000000000000 R09: 0000000000000000
[ 1909.987957] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000008
[ 1909.987959] R13: ffff88818118d400 R14: 0000000000000000 R15: ffff88810800ab10
[ 1909.987963] FS:  0000000000000000(0000) GS:ffff88840edc0000(0000) knlGS:0000000000000000
[ 1909.987966] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1909.987969] CR2: 00007f295eac7000 CR3: 0000000004010003 CR4: 00000000001706e0
[ 1909.987972] Call Trace:
[ 1909.987974]  <TASK>
[ 1909.987977]  mod_delayed_work_on+0x49/0x70
[ 1909.987980]  nfsd_courtesy_client_count+0x24/0x50 [nfsd]
[ 1909.987999]  shrink_slab.constprop.92+0x9d/0x370
[ 1909.988004]  shrink_node+0x1c5/0x420
[ 1909.988008]  balance_pgdat+0x25f/0x530
[ 1909.988013]  ? prepare_to_wait_event+0x120/0x120
[ 1909.988020]  ? prepare_to_wait_event+0x120/0x120
[ 1909.988026]  ? balance_pgdat+0x530/0x530
[ 1909.988030]  kthread+0xec/0x110
[ 1909.988033]  ? kthread_complete_and_exit+0x20/0x20
[ 1909.988038]  ret_from_fork+0x1f/0x30
[ 1909.988042]  </TASK>
[ 1909.988044] ---[ end trace 0000000000000000 ]---
[ 1909.988048] ------------[ cut here ]------------
[ 1909.988050] WARNING: CPU: 7 PID: 78 at kernel/workqueue.c:1500 __queue_work+0x33b/0x3d0
[ 1909.988017]  kswapd+0x12c/0x360
[ 1909.988064] Modules linked in: netconsole(E) af_packet(E) ip6table_mangle(E) ip6table_raw(E) iptable_raw(E) bridge(E) stp(E) llc(E) iscsi_ibft(E) iscsi_boot_sysfs(E) rfkill(E) nfnetlink(E) ebtable_filter(E) ebtables(E) ip6table_filter(E) ip6_tables(E) iptable_filter(E) bpfilter(E) usblp(E) joydev(E) intel_rapl_msr(E) intel_rapl_common(E) snd_hda_codec_realtek(E) snd_hda_codec_generic(E) ledtrig_audio(E) snd_hda_codec_hdmi(E) x86_pkg_temp_thermal(E) intel_powerclamp(E) coretemp(E) snd_hda_intel(E) snd_intel_dspcfg(E) iTCO_wdt(E) at24(E) intel_pmc_bxt(E) regmap_i2c(E) mei_hdcp(E) iTCO_vendor_support(E) kvm_intel(E) snd_hda_codec(E) nls_iso8859_1(E) snd_hwdep(E) nls_cp437(E) snd_hda_core(E) kvm(E) snd_pcm(E) r8169(E) irqbypass(E) snd_timer(E) i2c_i801(E) realtek(E) pcspkr(E) mei_me(E) mdio_devres(E) i2c_smbus(E) snd(E) lpc_ich(E) mfd_core(E) libphy(E) soundcore(E) mei(E) thermal(E) fan(E) intel_smartconnect(E) nfsd(E) auth_rpcgss(E) nfs_acl(E) lockd(E) grace(E) sch_fq_codel(E) sunrpc(E)
[ 1909.988099]  fuse(E) configfs(E) ip_tables(E) x_tables(E) hid_logitech_hidpp(E) hid_logitech_dj(E) uas(E) usb_storage(E) hid_generic(E) usbhid(E) nouveau(E) i2c_algo_bit(E) drm_ttm_helper(E) ttm(E) drm_display_helper(E) crct10dif_pclmul(E) crc32_pclmul(E) drm_kms_helper(E) ghash_clmulni_intel(E) sha512_ssse3(E) syscopyarea(E) sha512_generic(E) sysfillrect(E) xhci_pci(E) sysimgblt(E) ahci(E) ehci_pci(E) aesni_intel(E) fb_sys_fops(E) crypto_simd(E) libahci(E) cryptd(E) xhci_hcd(E) ehci_hcd(E) drm(E) libata(E) cec(E) usbcore(E) usb_common(E) rc_core(E) video(E) wmi(E) button(E) sd_mod(E) t10_pi(E) crc64_rocksoft_generic(E) crc64_rocksoft(E) crc64(E) vfat(E) fat(E) virtio_blk(E) virtio_mmio(E) virtio(E) virtio_ring(E) ext4(E) crc32c_intel(E) crc16(E) mbcache(E) jbd2(E) loop(E) sg(E) dm_multipath(E) dm_mod(E) scsi_dh_rdac(E) scsi_dh_emc(E) scsi_dh_alua(E) scsi_mod(E) scsi_common(E) msr(E) efivarfs(E) autofs4(E)
[ 1909.988140] CPU: 7 PID: 78 Comm: kswapd0 Kdump: loaded Tainted: G        W   E      6.1.1-smpxx #8
[ 1909.988144] Hardware name: MEDION MS-7848/MS-7848, BIOS M7848W08.20C 09/23/2013
[ 1909.988146] RIP: 0010:__queue_work+0x33b/0x3d0
[ 1909.988149] Code: 25 00 cd 01 00 f6 47 2c 20 74 18 e8 5f 65 00 00 48 85 c0 74 0e 48 8b 40 20 48 3b 68 08 0f 84 f5 fc ff ff 0f 0b e9 fe fd ff ff <0f> 0b e9 ee fd ff ff 83 c9 02 49 8d 57 68 e9 d7 fd ff ff 80 3d c3
[ 1909.988154] RSP: 0018:ffff888100ec7c38 EFLAGS: 00010003
[ 1909.988157] RAX: ffff88810800ab50 RBX: ffffffff820c4860 RCX: 0000000000000000
[ 1909.988160] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888100070000
[ 1909.988164] RBP: ffff88818118d400 R08: ffff888100400028 R09: ffff888100400000
[ 1909.988166] R10: 0000000000000000 R11: ffffffff8225f318 R12: 0000000000000008
[ 1909.988169] R13: 0000000000000007 R14: ffff88810800ab48 R15: ffff888107256100
[ 1909.988172] FS:  0000000000000000(0000) GS:ffff88840edc0000(0000) knlGS:0000000000000000
[ 1909.988176] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1909.988178] CR2: 00007f295eac7000 CR3: 0000000004010003 CR4: 00000000001706e0
[ 1909.988181] Call Trace:
[ 1909.988184]  <TASK>
[ 1909.988186]  mod_delayed_work_on+0x49/0x70
[ 1909.988190]  nfsd_courtesy_client_count+0x24/0x50 [nfsd]
[ 1909.988207]  shrink_slab.constprop.92+0x9d/0x370
[ 1909.988212]  shrink_node+0x1c5/0x420
[ 1909.988216]  balance_pgdat+0x25f/0x530
[ 1909.988220]  ? prepare_to_wait_event+0x120/0x120
[ 1909.988224]  kswapd+0x12c/0x360
[ 1909.988228]  ? prepare_to_wait_event+0x120/0x120
[ 1909.988232]  ? balance_pgdat+0x530/0x530
[ 1909.988235]  kthread+0xec/0x110
[ 1909.988239]  ? kthread_complete_and_exit+0x20/0x20
[ 1909.988247]  </TASK>
[ 1909.988249] ---[ end trace 0000000000000000 ]---
[ 1909.988264] ------------[ cut here ]------------
[ 1909.988267] WARNING: CPU: 7 PID: 78 at kernel/workqueue.c:1500 __queue_work+0x33b/0x3d0
[ 1909.988271] Modules linked in: netconsole(E) af_packet(E) ip6table_mangle(E) ip6table_raw(E) iptable_raw(E) bridge(E) stp(E) llc(E) iscsi_ibft(E) iscsi_boot_sysfs(E) rfkill(E) nfnetlink(E) ebtable_filter(E) ebtables(E) ip6table_filter(E) ip6_tables(E) iptable_filter(E) bpfilter(E) usblp(E) joydev(E) intel_rapl_msr(E) intel_rapl_common(E) snd_hda_codec_realtek(E) snd_hda_codec_generic(E) ledtrig_audio(E) snd_hda_codec_hdmi(E) x86_pkg_temp_thermal(E) intel_powerclamp(E) coretemp(E) snd_hda_intel(E) snd_intel_dspcfg(E) iTCO_wdt(E) at24(E) intel_pmc_bxt(E) regmap_i2c(E) mei_hdcp(E) iTCO_vendor_support(E) kvm_intel(E) snd_hda_codec(E) nls_iso8859_1(E) snd_hwdep(E) nls_cp437(E) snd_hda_core(E) kvm(E) snd_pcm(E) r8169(E) irqbypass(E) snd_timer(E) i2c_i801(E) realtek(E) pcspkr(E) mei_me(E) mdio_devres(E) i2c_smbus(E) snd(E) lpc_ich(E) mfd_core(E) libphy(E) soundcore(E) mei(E) thermal(E) fan(E) intel_smartconnect(E) nfsd(E) auth_rpcgss(E) nfs_acl(E) lockd(E) grace(E) sch_fq_codel(E) sunrpc(E)
[ 1909.988296]  fuse(E) configfs(E) ip_tables(E) x_tables(E) hid_logitech_hidpp(E) hid_logitech_dj(E) uas(E) usb_storage(E) hid_generic(E) usbhid(E) nouveau(E) i2c_algo_bit(E) drm_ttm_helper(E) ttm(E) drm_display_helper(E) crct10dif_pclmul(E) crc32_pclmul(E) drm_kms_helper(E) ghash_clmulni_intel(E) sha512_ssse3(E) syscopyarea(E) sha512_generic(E) sysfillrect(E) xhci_pci(E) sysimgblt(E) ahci(E) ehci_pci(E) aesni_intel(E) fb_sys_fops(E) crypto_simd(E) libahci(E) cryptd(E) xhci_hcd(E) ehci_hcd(E) drm(E) libata(E) cec(E) usbcore(E) usb_common(E) rc_core(E) video(E) wmi(E) button(E) sd_mod(E) t10_pi(E) crc64_rocksoft_generic(E) crc64_rocksoft(E) crc64(E) vfat(E) fat(E) virtio_blk(E) virtio_mmio(E) virtio(E) virtio_ring(E) ext4(E) crc32c_intel(E) crc16(E) mbcache(E) jbd2(E) loop(E) sg(E) dm_multipath(E) dm_mod(E) scsi_dh_rdac(E) scsi_dh_emc(E) scsi_dh_alua(E) scsi_mod(E) scsi_common(E) msr(E) efivarfs(E) autofs4(E)
[ 1909.988357] CPU: 7 PID: 78 Comm: kswapd0 Kdump: loaded Tainted: G        W   E      6.1.1-smpxx #8
[ 1909.988360] Hardware name: MEDION MS-7848/MS-7848, BIOS M7848W08.20C 09/23/2013
[ 1909.988362] RIP: 0010:__queue_work+0x33b/0x3d0
[ 1909.988376] Code: 25 00 cd 01 00 f6 47 2c 20 74 18 e8 5f 65 00 00 48 85 c0 74 0e 48 8b 40 20 48 3b 68 08 0f 84 f5 fc ff ff 0f 0b e9 fe fd ff ff <0f> 0b e9 ee fd ff ff 83 c9 02 49 8d 57 68 e9 d7 fd ff ff 80 3d c3
[ 1909.988379] RSP: 0018:ffff888100ec7c38 EFLAGS: 00010003
[ 1909.988392] RAX: ffff888106c9bf50 RBX: ffffffff820c4860 RCX: 0000000000000000
[ 1909.988395] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888100070000
[ 1909.988397] RBP: ffff88818118d400 R08: ffff888100400028 R09: ffff888100400000
[ 1909.988400] R10: 0000000000000000 R11: ffffffff8225f318 R12: 0000000000000008
[ 1909.988404] R13: 0000000000000007 R14: ffff888106c9bf48 R15: ffff888107256100
[ 1909.988407] FS:  0000000000000000(0000) GS:ffff88840edc0000(0000) knlGS:0000000000000000
[ 1909.988410] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1909.988413] CR2: 00007f295eac7000 CR3: 0000000004010003 CR4: 00000000001706e0
[ 1909.988416] Call Trace:
[ 1909.988243]  ret_from_fork+0x1f/0x30
[ 1909.988418]  <TASK>
[ 1909.988420]  mod_delayed_work_on+0x49/0x70
[ 1909.988424]  nfsd_courtesy_client_count+0x24/0x50 [nfsd]
[ 1909.988442]  shrink_slab.constprop.92+0x9d/0x370
[ 1909.988446]  shrink_node+0x1c5/0x420
[ 1909.988451]  balance_pgdat+0x25f/0x530
[ 1909.988455]  ? prepare_to_wait_event+0x120/0x120
[ 1909.988459]  kswapd+0x12c/0x360
[ 1909.988463]  ? prepare_to_wait_event+0x120/0x120
[ 1909.988467]  ? balance_pgdat+0x530/0x530
[ 1909.988470]  kthread+0xec/0x110
[ 1909.988475]  ? kthread_complete_and_exit+0x20/0x20
[ 1909.988478]  ret_from_fork+0x1f/0x30
[ 1909.988483]  </TASK>
[ 1909.988485] ---[ end trace 0000000000000000 ]---
[ 1909.988489] ------------[ cut here ]------------
[ 1909.988491] WARNING: CPU: 7 PID: 78 at kernel/workqueue.c:1500 __queue_work+0x33b/0x3d0
[ 1909.988495] Modules linked in: netconsole(E) af_packet(E) ip6table_mangle(E) ip6table_raw(E) iptable_raw(E) bridge(E) stp(E) llc(E) iscsi_ibft(E) iscsi_boot_sysfs(E) rfkill(E) nfnetlink(E) ebtable_filter(E) ebtables(E) ip6table_filter(E) ip6_tables(E) iptable_filter(E) bpfilter(E) usblp(E) joydev(E) intel_rapl_msr(E) intel_rapl_common(E) snd_hda_codec_realtek(E) snd_hda_codec_generic(E) ledtrig_audio(E) snd_hda_codec_hdmi(E) x86_pkg_temp_thermal(E) intel_powerclamp(E) coretemp(E) snd_hda_intel(E) snd_intel_dspcfg(E) iTCO_wdt(E) at24(E) intel_pmc_bxt(E) regmap_i2c(E) mei_hdcp(E) iTCO_vendor_support(E) kvm_intel(E) snd_hda_codec(E) nls_iso8859_1(E) snd_hwdep(E) nls_cp437(E) snd_hda_core(E) kvm(E) snd_pcm(E) r8169(E) irqbypass(E) snd_timer(E) i2c_i801(E) realtek(E) pcspkr(E) mei_me(E) mdio_devres(E) i2c_smbus(E) snd(E) lpc_ich(E) mfd_core(E) libphy(E) soundcore(E) mei(E) thermal(E) fan(E) intel_smartconnect(E) nfsd(E) auth_rpcgss(E) nfs_acl(E) lockd(E) grace(E) sch_fq_codel(E) sunrpc(E)
[ 1909.988521]  fuse(E) configfs(E) ip_tables(E) x_tables(E) hid_logitech_hidpp(E) hid_logitech_dj(E) uas(E) usb_storage(E) hid_generic(E) usbhid(E) nouveau(E) i2c_algo_bit(E) drm_ttm_helper(E) ttm(E) drm_display_helper(E) crct10dif_pclmul(E) crc32_pclmul(E) drm_kms_helper(E) ghash_clmulni_intel(E) sha512_ssse3(E) syscopyarea(E) sha512_generic(E) sysfillrect(E) xhci_pci(E) sysimgblt(E) ahci(E) ehci_pci(E) aesni_intel(E) fb_sys_fops(E) crypto_simd(E) libahci(E) cryptd(E) xhci_hcd(E) ehci_hcd(E) drm(E) libata(E) cec(E) usbcore(E) usb_common(E) rc_core(E) video(E) wmi(E) button(E) sd_mod(E) t10_pi(E) crc64_rocksoft_generic(E) crc64_rocksoft(E) crc64(E) vfat(E) fat(E) virtio_blk(E) virtio_mmio(E) virtio(E) virtio_ring(E) ext4(E) crc32c_intel(E) crc16(E) mbcache(E) jbd2(E) loop(E) sg(E) dm_multipath(E) dm_mod(E) scsi_dh_rdac(E) scsi_dh_emc(E) scsi_dh_alua(E) scsi_mod(E) scsi_common(E) msr(E) efivarfs(E) autofs4(E)
[ 1909.988563] CPU: 7 PID: 78 Comm: kswapd0 Kdump: loaded Tainted: G        W   E      6.1.1-smpxx #8
[ 1909.988566] Hardware name: MEDION MS-7848/MS-7848, BIOS M7848W08.20C 09/23/2013
[ 1909.988568] RIP: 0010:__queue_work+0x33b/0x3d0
[ 1909.988572] Code: 25 00 cd 01 00 f6 47 2c 20 74 18 e8 5f 65 00 00 48 85 c0 74 0e 48 8b 40 20 48 3b 68 08 0f 84 f5 fc ff ff 0f 0b e9 fe fd ff ff <0f> 0b e9 ee fd ff ff 83 c9 02 49 8d 57 68 e9 d7 fd ff ff 80 3d c3
[ 1909.988576] RSP: 0018:ffff888100ec7c38 EFLAGS: 00010003
[ 1909.988579] RAX: ffff8881438d7b50 RBX: ffffffff820c4860 RCX: 0000000000000000
[ 1909.988582] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888100070000
[ 1909.988586] RBP: ffff88818118d400 R08: ffff888100400028 R09: ffff888100400000
[ 1909.988588] R10: 0000000000000000 R11: ffffffff8225f318 R12: 0000000000000008
[ 1909.988591] R13: 0000000000000007 R14: ffff8881438d7b48 R15: ffff888107256100
[ 1909.988594] FS:  0000000000000000(0000) GS:ffff88840edc0000(0000) knlGS:0000000000000000
[ 1909.988597] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1909.988602] CR2: 00007f295eac7000 CR3: 0000000004010003 CR4: 00000000001706e0
[ 1909.988605] Call Trace:
[ 1909.988607]  <TASK>
[ 1909.988610]  mod_delayed_work_on+0x49/0x70
[ 1909.988615]  nfsd_courtesy_client_count+0x24/0x50 [nfsd]
[ 1909.988633]  shrink_slab.constprop.92+0x9d/0x370
[ 1909.988637]  shrink_node+0x1c5/0x420
[ 1909.988641]  balance_pgdat+0x25f/0x530
[ 1909.988645]  ? prepare_to_wait_event+0x120/0x120
[ 1909.988649]  kswapd+0x12c/0x360
[ 1909.988653]  ? prepare_to_wait_event+0x120/0x120
[ 1909.988658]  ? balance_pgdat+0x530/0x530
[ 1909.988661]  kthread+0xec/0x110
[ 1909.988664]  ? kthread_complete_and_exit+0x20/0x20
[ 1909.988667]  ret_from_fork+0x1f/0x30
[ 1909.988672]  </TASK>
[ 1909.988674] ---[ end trace 0000000000000000 ]---
[ 1909.988678] ------------[ cut here ]------------
[ 1909.988681] WARNING: CPU: 7 PID: 78 at kernel/workqueue.c:1500 __queue_work+0x33b/0x3d0
[ 1909.988740] Modules linked in: netconsole(E) af_packet(E) ip6table_mangle(E) ip6table_raw(E) iptable_raw(E) bridge(E) stp(E) llc(E) iscsi_ibft(E) iscsi_boot_sysfs(E) rfkill(E) nfnetlink(E) ebtable_filter(E) ebtables(E) ip6table_filter(E) ip6_tables(E) iptable_filter(E) bpfilter(E) usblp(E) joydev(E) intel_rapl_msr(E) intel_rapl_common(E) snd_hda_codec_realtek(E) snd_hda_codec_generic(E) ledtrig_audio(E) snd_hda_codec_hdmi(E) x86_pkg_temp_thermal(E) intel_powerclamp(E) coretemp(E) snd_hda_intel(E) snd_intel_dspcfg(E) iTCO_wdt(E) at24(E) intel_pmc_bxt(E) regmap_i2c(E) mei_hdcp(E) iTCO_vendor_support(E) kvm_intel(E) snd_hda_codec(E) nls_iso8859_1(E) snd_hwdep(E) nls_cp437(E) snd_hda_core(E) kvm(E) snd_pcm(E) r8169(E) irqbypass(E) snd_timer(E) i2c_i801(E) realtek(E) pcspkr(E) mei_me(E) mdio_devres(E) i2c_smbus(E) snd(E) lpc_ich(E) mfd_core(E) libphy(E) soundcore(E) mei(E) thermal(E) fan(E) intel_smartconnect(E) nfsd(E) auth_rpcgss(E) nfs_acl(E) lockd(E) grace(E) sch_fq_codel(E) sunrpc(E)
[ 1909.988765]  fuse(E) configfs(E) ip_tables(E) x_tables(E) hid_logitech_hidpp(E) hid_logitech_dj(E) uas(E) usb_storage(E) hid_generic(E) usbhid(E) nouveau(E) i2c_algo_bit(E) drm_ttm_helper(E) ttm(E) drm_display_helper(E) crct10dif_pclmul(E) crc32_pclmul(E) drm_kms_helper(E) ghash_clmulni_intel(E) sha512_ssse3(E) syscopyarea(E) sha512_generic(E) sysfillrect(E) xhci_pci(E) sysimgblt(E) ahci(E) ehci_pci(E) aesni_intel(E) fb_sys_fops(E) crypto_simd(E) libahci(E) cryptd(E) xhci_hcd(E) ehci_hcd(E) drm(E) libata(E) cec(E) usbcore(E) usb_common(E) rc_core(E) video(E) wmi(E) button(E) sd_mod(E) t10_pi(E) crc64_rocksoft_generic(E) crc64_rocksoft(E) crc64(E) vfat(E) fat(E) virtio_blk(E) virtio_mmio(E) virtio(E) virtio_ring(E) ext4(E) crc32c_intel(E) crc16(E) mbcache(E) jbd2(E) loop(E) sg(E) dm_multipath(E) dm_mod(E) scsi_dh_rdac(E) scsi_dh_emc(E) scsi_dh_alua(E) scsi_mod(E) scsi_common(E) msr(E) efivarfs(E) autofs4(E)
[ 1909.988806] CPU: 7 PID: 78 Comm: kswapd0 Kdump: loaded Tainted: G        W   E      6.1.1-smpxx #8
[ 1909.988809] Hardware name: MEDION MS-7848/MS-7848, BIOS M7848W08.20C 09/23/2013
[ 1909.988812] RIP: 0010:__queue_work+0x33b/0x3d0
[ 1909.988815] Code: 25 00 cd 01 00 f6 47 2c 20 74 18 e8 5f 65 00 00 48 85 c0 74 0e 48 8b 40 20 48 3b 68 08 0f 84 f5 fc ff ff 0f 0b e9 fe fd ff ff <0f> 0b e9 ee fd ff ff 83 c9 02 49 8d 57 68 e9 d7 fd ff ff 80 3d c3
[ 1909.988819] RSP: 0018:ffff888100ec7c38 EFLAGS: 00010003
[ 1909.988822] RAX: ffff8881e2614750 RBX: ffffffff820c4860 RCX: 0000000000000000
[ 1909.988824] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888100070000
[ 1909.988827] RBP: ffff88818118d400 R08: ffff888100400028 R09: ffff888100400000
[ 1909.988830] R10: 0000000000000000 R11: ffffffff8225f318 R12: 0000000000000008
[ 1909.988832] R13: 0000000000000007 R14: ffff8881e2614748 R15: ffff888107256100
[ 1909.988835] FS:  0000000000000000(0000) GS:ffff88840edc0000(0000) knlGS:0000000000000000
[ 1909.988838] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1909.988841] CR2: 00007f295eac7000 CR3: 0000000004010003 CR4: 00000000001706e0
[ 1909.988843] Call Trace:
[ 1909.988846]  <TASK>
[ 1909.988848]  mod_delayed_work_on+0x49/0x70
[ 1909.988852]  nfsd_courtesy_client_count+0x24/0x50 [nfsd]
[ 1909.988869]  shrink_slab.constprop.92+0x9d/0x370
[ 1909.988873]  shrink_node+0x1c5/0x420
[ 1909.988877]  balance_pgdat+0x25f/0x530
[ 1909.988881]  ? prepare_to_wait_event+0x120/0x120
[ 1909.988885]  kswapd+0x12c/0x360
[ 1909.988889]  ? prepare_to_wait_event+0x120/0x120
[ 1909.988893]  ? balance_pgdat+0x530/0x530
[ 1909.988897]  kthread+0xec/0x110
[ 1909.988900]  ? kthread_complete_and_exit+0x20/0x20
[ 1909.988903]  ret_from_fork+0x1f/0x30
[ 1909.988907]  </TASK>
[ 1909.988909] ---[ end trace 0000000000000000 ]---
[ 1909.988913] ------------[ cut here ]------------
[ 1909.988915] WARNING: CPU: 7 PID: 78 at kernel/workqueue.c:1500 __queue_work+0x33b/0x3d0
[ 1909.988919] Modules linked in: netconsole(E) af_packet(E) ip6table_mangle(E) ip6table_raw(E) iptable_raw(E) bridge(E) stp(E) llc(E) iscsi_ibft(E) iscsi_boot_sysfs(E) rfkill(E) nfnetlink(E) ebtable_filter(E) ebtables(E) ip6table_filter(E) ip6_tables(E) iptable_filter(E) bpfilter(E) usblp(E) joydev(E) intel_rapl_msr(E) intel_rapl_common(E) snd_hda_codec_realtek(E) snd_hda_codec_generic(E) ledtrig_audio(E) snd_hda_codec_hdmi(E) x86_pkg_temp_thermal(E) intel_powerclamp(E) coretemp(E) snd_hda_intel(E) snd_intel_dspcfg(E) iTCO_wdt(E) at24(E) intel_pmc_bxt(E) regmap_i2c(E) mei_hdcp(E) iTCO_vendor_support(E) kvm_intel(E) snd_hda_codec(E) nls_iso8859_1(E) snd_hwdep(E) nls_cp437(E) snd_hda_core(E) kvm(E) snd_pcm(E) r8169(E) irqbypass(E) snd_timer(E) i2c_i801(E) realtek(E) pcspkr(E) mei_me(E) mdio_devres(E) i2c_smbus(E) snd(E) lpc_ich(E) mfd_core(E) libphy(E) soundcore(E) mei(E) thermal(E) fan(E) intel_smartconnect(E) nfsd(E) auth_rpcgss(E) nfs_acl(E) lockd(E) grace(E) sch_fq_codel(E) sunrpc(E)
[ 1909.988945]  fuse(E) configfs(E) ip_tables(E) x_tables(E) hid_logitech_hidpp(E) hid_logitech_dj(E) uas(E) usb_storage(E) hid_generic(E) usbhid(E) nouveau(E) i2c_algo_bit(E) drm_ttm_helper(E) ttm(E) drm_display_helper(E) crct10dif_pclmul(E) crc32_pclmul(E) drm_kms_helper(E) ghash_clmulni_intel(E) sha512_ssse3(E) syscopyarea(E) sha512_generic(E) sysfillrect(E) xhci_pci(E) sysimgblt(E) ahci(E) ehci_pci(E) aesni_intel(E) fb_sys_fops(E) crypto_simd(E) libahci(E) cryptd(E) xhci_hcd(E) ehci_hcd(E) drm(E) libata(E) cec(E) usbcore(E) usb_common(E) rc_core(E) video(E) wmi(E) button(E) sd_mod(E) t10_pi(E) crc64_rocksoft_generic(E) crc64_rocksoft(E) crc64(E) vfat(E) fat(E) virtio_blk(E) virtio_mmio(E) virtio(E) virtio_ring(E) ext4(E) crc32c_intel(E) crc16(E) mbcache(E) jbd2(E) loop(E) sg(E) dm_multipath(E) dm_mod(E) scsi_dh_rdac(E) scsi_dh_emc(E) scsi_dh_alua(E) scsi_mod(E) scsi_common(E) msr(E) efivarfs(E) autofs4(E)
[ 1909.988986] CPU: 7 PID: 78 Comm: kswapd0 Kdump: loaded Tainted: G        W   E      6.1.1-smpxx #8
[ 1909.988990] Hardware name: MEDION MS-7848/MS-7848, BIOS M7848W08.20C 09/23/2013
[ 1909.988992] RIP: 0010:__queue_work+0x33b/0x3d0
[ 1909.988995] Code: 25 00 cd 01 00 f6 47 2c 20 74 18 e8 5f 65 00 00 48 85 c0 74 0e 48 8b 40 20 48 3b 68 08 0f 84 f5 fc ff ff 0f 0b e9 fe fd ff ff <0f> 0b e9 ee fd ff ff 83 c9 02 49 8d 57 68 e9 d7 fd ff ff 80 3d c3
[ 1909.988999] RSP: 0018:ffff888100ec7c38 EFLAGS: 00010003
[ 1909.989002] RAX: ffff888332342350 RBX: ffffffff820c4860 RCX: 0000000000000000
[ 1909.989005] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888100070000
[ 1909.989007] RBP: ffff88818118d400 R08: ffff888100400028 R09: ffff888100400000
[ 1909.989010] R10: 0000000000000000 R11: ffffffff8225f318 R12: 0000000000000008
[ 1909.989013] R13: 0000000000000007 R14: ffff888332342348 R15: ffff888107256100
[ 1909.989016] FS:  0000000000000000(0000) GS:ffff88840edc0000(0000) knlGS:0000000000000000
[ 1909.989019] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1909.989021] CR2: 00007f295eac7000 CR3: 0000000004010003 CR4: 00000000001706e0
[ 1909.989024] Call Trace:
[ 1909.989026]  <TASK>
[ 1909.989028]  mod_delayed_work_on+0x49/0x70
[ 1909.989032]  nfsd_courtesy_client_count+0x24/0x50 [nfsd]
[ 1909.989049]  shrink_slab.constprop.92+0x9d/0x370
[ 1909.989053]  shrink_node+0x1c5/0x420
[ 1909.989057]  balance_pgdat+0x25f/0x530
[ 1909.989061]  ? prepare_to_wait_event+0x120/0x120
[ 1909.989065]  kswapd+0x12c/0x360
[ 1909.989069]  ? prepare_to_wait_event+0x120/0x120
[ 1909.989073]  ? balance_pgdat+0x530/0x530
[ 1909.989077]  kthread+0xec/0x110
[ 1909.989080]  ? kthread_complete_and_exit+0x20/0x20
[ 1909.989083]  ret_from_fork+0x1f/0x30
[ 1909.989089]  </TASK>
[ 1909.989091] ---[ end trace 0000000000000000 ]---
[ 1909.989095] ------------[ cut here ]------------
[ 1909.989097] WARNING: CPU: 7 PID: 78 at kernel/workqueue.c:1500 __queue_work+0x33b/0x3d0
[ 1909.989101] Modules linked in: netconsole(E) af_packet(E) ip6table_mangle(E) ip6table_raw(E) iptable_raw(E) bridge(E) stp(E) llc(E) iscsi_ibft(E) iscsi_boot_sysfs(E) rfkill(E) nfnetlink(E) ebtable_filter(E) ebtables(E) ip6table_filter(E) ip6_tables(E) iptable_filter(E) bpfilter(E) usblp(E) joydev(E) intel_rapl_msr(E) intel_rapl_common(E) snd_hda_codec_realtek(E) snd_hda_codec_generic(E) ledtrig_audio(E) snd_hda_codec_hdmi(E) x86_pkg_temp_thermal(E) intel_powerclamp(E) coretemp(E) snd_hda_intel(E) snd_intel_dspcfg(E) iTCO_wdt(E) at24(E) intel_pmc_bxt(E) regmap_i2c(E) mei_hdcp(E) iTCO_vendor_support(E) kvm_intel(E) snd_hda_codec(E) nls_iso8859_1(E) snd_hwdep(E) nls_cp437(E) snd_hda_core(E) kvm(E) snd_pcm(E) r8169(E) irqbypass(E) snd_timer(E) i2c_i801(E) realtek(E) pcspkr(E) mei_me(E) mdio_devres(E) i2c_smbus(E) snd(E) lpc_ich(E) mfd_core(E) libphy(E) soundcore(E) mei(E) thermal(E) fan(E) intel_smartconnect(E) nfsd(E) auth_rpcgss(E) nfs_acl(E) lockd(E) grace(E) sch_fq_codel(E) sunrpc(E)
[ 1909.989126]  fuse(E) configfs(E) ip_tables(E) x_tables(E) hid_logitech_hidpp(E) hid_logitech_dj(E) uas(E) usb_storage(E) hid_generic(E) usbhid(E) nouveau(E) i2c_algo_bit(E) drm_ttm_helper(E) ttm(E) drm_display_helper(E) crct10dif_pclmul(E) crc32_pclmul(E) drm_kms_helper(E) ghash_clmulni_intel(E) sha512_ssse3(E) syscopyarea(E) sha512_generic(E) sysfillrect(E) xhci_pci(E) sysimgblt(E) ahci(E) ehci_pci(E) aesni_intel(E) fb_sys_fops(E) crypto_simd(E) libahci(E) cryptd(E) xhci_hcd(E) ehci_hcd(E) drm(E) libata(E) cec(E) usbcore(E) usb_common(E) rc_core(E) video(E) wmi(E) button(E) sd_mod(E) t10_pi(E) crc64_rocksoft_generic(E) crc64_rocksoft(E) crc64(E) vfat(E) fat(E) virtio_blk(E) virtio_mmio(E) virtio(E) virtio_ring(E) ext4(E) crc32c_intel(E) crc16(E) mbcache(E) jbd2(E) loop(E) sg(E) dm_multipath(E) dm_mod(E) scsi_dh_rdac(E) scsi_dh_emc(E) scsi_dh_alua(E) scsi_mod(E) scsi_common(E) msr(E) efivarfs(E) autofs4(E)
[ 1909.989168] CPU: 7 PID: 78 Comm: kswapd0 Kdump: loaded Tainted: G        W   E      6.1.1-smpxx #8
[ 1909.989229] Hardware name: MEDION MS-7848/MS-7848, BIOS M7848W08.20C 09/23/2013
[ 1909.989232] RIP: 0010:__queue_work+0x33b/0x3d0
[ 1909.989235] Code: 25 00 cd 01 00 f6 47 2c 20 74 18 e8 5f 65 00 00 48 85 c0 74 0e 48 8b 40 20 48 3b 68 08 0f 84 f5 fc ff ff 0f 0b e9 fe fd ff ff <0f> 0b e9 ee fd ff ff 83 c9 02 49 8d 57 68 e9 d7 fd ff ff 80 3d c3
[ 1909.989239] RSP: 0018:ffff888100ec7c38 EFLAGS: 00010003
[ 1909.989242] RAX: ffff888331afb750 RBX: ffffffff820c4860 RCX: 0000000000000000
[ 1909.989244] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888100070000
[ 1909.989247] RBP: ffff88818118d400 R08: ffff888100400028 R09: ffff888100400000
[ 1909.989249] R10: 0000000000000000 R11: ffffffff8225f318 R12: 0000000000000008
[ 1909.989252] R13: 0000000000000007 R14: ffff888331afb748 R15: ffff888107256100
[ 1909.989255] FS:  0000000000000000(0000) GS:ffff88840edc0000(0000) knlGS:0000000000000000
[ 1909.989258] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1909.989260] CR2: 00007f295eac7000 CR3: 0000000004010003 CR4: 00000000001706e0
[ 1909.989263] Call Trace:
[ 1909.989265]  <TASK>
[ 1909.989267]  mod_delayed_work_on+0x49/0x70
[ 1909.989271]  nfsd_courtesy_client_count+0x24/0x50 [nfsd]
[ 1909.989288]  shrink_slab.constprop.92+0x9d/0x370
[ 1909.989292]  shrink_node+0x1c5/0x420
[ 1909.989296]  balance_pgdat+0x25f/0x530
[ 1909.989300]  ? prepare_to_wait_event+0x120/0x120
[ 1909.989304]  kswapd+0x12c/0x360
[ 1909.989307]  ? prepare_to_wait_event+0x120/0x120
[ 1909.989311]  ? balance_pgdat+0x530/0x530
[ 1909.989315]  kthread+0xec/0x110
[ 1909.989318]  ? kthread_complete_and_exit+0x20/0x20
[ 1909.989321]  ret_from_fork+0x1f/0x30
[ 1909.989325]  </TASK>
[ 1909.989327] ---[ end trace 0000000000000000 ]---
[ 1909.989331] ------------[ cut here ]------------
[ 1909.989334] WARNING: CPU: 7 PID: 78 at kernel/workqueue.c:1500 __queue_work+0x33b/0x3d0
[ 1909.989337] Modules linked in: netconsole(E) af_packet(E) ip6table_mangle(E) ip6table_raw(E) iptable_raw(E) bridge(E) stp(E) llc(E) iscsi_ibft(E) iscsi_boot_sysfs(E) rfkill(E) nfnetlink(E) ebtable_filter(E) ebtables(E) ip6table_filter(E) ip6_tables(E) iptable_filter(E) bpfilter(E) usblp(E) joydev(E) intel_rapl_msr(E) intel_rapl_common(E) snd_hda_codec_realtek(E) snd_hda_codec_generic(E) ledtrig_audio(E) snd_hda_codec_hdmi(E) x86_pkg_temp_thermal(E) intel_powerclamp(E) coretemp(E) snd_hda_intel(E) snd_intel_dspcfg(E) iTCO_wdt(E) at24(E) intel_pmc_bxt(E) regmap_i2c(E) mei_hdcp(E) iTCO_vendor_support(E) kvm_intel(E) snd_hda_codec(E) nls_iso8859_1(E) snd_hwdep(E) nls_cp437(E) snd_hda_core(E) kvm(E) snd_pcm(E) r8169(E) irqbypass(E) snd_timer(E) i2c_i801(E) realtek(E) pcspkr(E) mei_me(E) mdio_devres(E) i2c_smbus(E) snd(E) lpc_ich(E) mfd_core(E) libphy(E) soundcore(E) mei(E) thermal(E) fan(E) intel_smartconnect(E) nfsd(E) auth_rpcgss(E) nfs_acl(E) lockd(E) grace(E) sch_fq_codel(E) sunrpc(E)
[ 1909.989363]  fuse(E) configfs(E) ip_tables(E) x_tables(E) hid_logitech_hidpp(E) hid_logitech_dj(E) uas(E) usb_storage(E) hid_generic(E) usbhid(E) nouveau(E) i2c_algo_bit(E) drm_ttm_helper(E) ttm(E) drm_display_helper(E) crct10dif_pclmul(E) crc32_pclmul(E) drm_kms_helper(E) ghash_clmulni_intel(E) sha512_ssse3(E) syscopyarea(E) sha512_generic(E) sysfillrect(E) xhci_pci(E) sysimgblt(E) ahci(E) ehci_pci(E) aesni_intel(E) fb_sys_fops(E) crypto_simd(E) libahci(E) cryptd(E) xhci_hcd(E) ehci_hcd(E) drm(E) libata(E) cec(E) usbcore(E) usb_common(E) rc_core(E) video(E) wmi(E) button(E) sd_mod(E) t10_pi(E) crc64_rocksoft_generic(E) crc64_rocksoft(E) crc64(E) vfat(E) fat(E) virtio_blk(E) virtio_mmio(E) virtio(E) virtio_ring(E) ext4(E) crc32c_intel(E) crc16(E) mbcache(E) jbd2(E) loop(E) sg(E) dm_multipath(E) dm_mod(E) scsi_dh_rdac(E) scsi_dh_emc(E) scsi_dh_alua(E) scsi_mod(E) scsi_common(E) msr(E) efivarfs(E) autofs4(E)
[ 1909.989404] CPU: 7 PID: 78 Comm: kswapd0 Kdump: loaded Tainted: G        W   E      6.1.1-smpxx #8
[ 1909.989407] Hardware name: MEDION MS-7848/MS-7848, BIOS M7848W08.20C 09/23/2013
[ 1909.989410] RIP: 0010:__queue_work+0x33b/0x3d0
[ 1909.989413] Code: 25 00 cd 01 00 f6 47 2c 20 74 18 e8 5f 65 00 00 48 85 c0 74 0e 48 8b 40 20 48 3b 68 08 0f 84 f5 fc ff ff 0f 0b e9 fe fd ff ff <0f> 0b e9 ee fd ff ff 83 c9 02 49 8d 57 68 e9 d7 fd ff ff 80 3d c3
[ 1909.989417] RSP: 0018:ffff888100ec7c38 EFLAGS: 00010003
[ 1909.989420] RAX: ffff888331aff350 RBX: ffffffff820c4860 RCX: 0000000000000000
[ 1909.989423] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888100070000
[ 1909.989426] RBP: ffff88818118d400 R08: ffff888100400028 R09: ffff888100400000
[ 1909.989428] R10: 0000000000000000 R11: ffffffff8225f318 R12: 0000000000000008
[ 1909.989431] R13: 0000000000000007 R14: ffff888331aff348 R15: ffff888107256100
[ 1909.989434] FS:  0000000000000000(0000) GS:ffff88840edc0000(0000) knlGS:0000000000000000
[ 1909.989437] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1909.989440] CR2: 00007f295eac7000 CR3: 0000000004010003 CR4: 00000000001706e0
[ 1909.989442] Call Trace:
[ 1909.989444]  <TASK>
[ 1909.989447]  mod_delayed_work_on+0x49/0x70
[ 1909.989450]  nfsd_courtesy_client_count+0x24/0x50 [nfsd]
[ 1909.989467]  shrink_slab.constprop.92+0x9d/0x370
[ 1909.989471]  shrink_node+0x1c5/0x420
[ 1909.989475]  balance_pgdat+0x25f/0x530
[ 1909.989479]  ? prepare_to_wait_event+0x120/0x120
[ 1909.989484]  kswapd+0x12c/0x360
[ 1909.989487]  ? prepare_to_wait_event+0x120/0x120
[ 1909.989491]  ? balance_pgdat+0x530/0x530
[ 1909.989495]  kthread+0xec/0x110
[ 1909.989498]  ? kthread_complete_and_exit+0x20/0x20
[ 1909.989501]  ret_from_fork+0x1f/0x30
[ 1909.989505]  </TASK>
[ 1909.989507] ---[ end trace 0000000000000000 ]---
[ 1909.989511] ------------[ cut here ]------------
[ 1909.989514] WARNING: CPU: 7 PID: 78 at kernel/workqueue.c:1500 __queue_work+0x33b/0x3d0
[ 1909.989518] Modules linked in: netconsole(E) af_packet(E) ip6table_mangle(E) ip6table_raw(E) iptable_raw(E) bridge(E) stp(E) llc(E) iscsi_ibft(E) iscsi_boot_sysfs(E) rfkill(E) nfnetlink(E) ebtable_filter(E) ebtables(E) ip6table_filter(E) ip6_tables(E) iptable_filter(E) bpfilter(E) usblp(E) joydev(E) intel_rapl_msr(E) intel_rapl_common(E) snd_hda_codec_realtek(E) snd_hda_codec_generic(E) ledtrig_audio(E) snd_hda_codec_hdmi(E) x86_pkg_temp_thermal(E) intel_powerclamp(E) coretemp(E) snd_hda_intel(E) snd_intel_dspcfg(E) iTCO_wdt(E) at24(E) intel_pmc_bxt(E) regmap_i2c(E) mei_hdcp(E) iTCO_vendor_support(E) kvm_intel(E) snd_hda_codec(E) nls_iso8859_1(E) snd_hwdep(E) nls_cp437(E) snd_hda_core(E) kvm(E) snd_pcm(E) r8169(E) irqbypass(E) snd_timer(E) i2c_i801(E) realtek(E) pcspkr(E) mei_me(E) mdio_devres(E) i2c_smbus(E) snd(E) lpc_ich(E) mfd_core(E) libphy(E) soundcore(E) mei(E) thermal(E) fan(E) intel_smartconnect(E) nfsd(E) auth_rpcgss(E) nfs_acl(E) lockd(E) grace(E) sch_fq_codel(E) sunrpc(E)
[ 1909.989543]  fuse(E) configfs(E) ip_tables(E) x_tables(E) hid_logitech_hidpp(E) hid_logitech_dj(E) uas(E) usb_storage(E) hid_generic(E) usbhid(E) nouveau(E) i2c_algo_bit(E) drm_ttm_helper(E) ttm(E) drm_display_helper(E) crct10dif_pclmul(E) crc32_pclmul(E) drm_kms_helper(E) ghash_clmulni_intel(E) sha512_ssse3(E) syscopyarea(E) sha512_generic(E) sysfillrect(E) xhci_pci(E) sysimgblt(E) ahci(E) ehci_pci(E) aesni_intel(E) fb_sys_fops(E) crypto_simd(E) libahci(E) cryptd(E) xhci_hcd(E) ehci_hcd(E) drm(E) libata(E) cec(E) usbcore(E) usb_common(E) rc_core(E) video(E) wmi(E) button(E) sd_mod(E) t10_pi(E) crc64_rocksoft_generic(E) crc64_rocksoft(E) crc64(E) vfat(E) fat(E) virtio_blk(E) virtio_mmio(E) virtio(E) virtio_ring(E) ext4(E) crc32c_intel(E) crc16(E) mbcache(E) jbd2(E) loop(E) sg(E) dm_multipath(E) dm_mod(E) scsi_dh_rdac(E) scsi_dh_emc(E) scsi_dh_alua(E) scsi_mod(E) scsi_common(E) msr(E) efivarfs(E) autofs4(E)
[ 1909.989585] CPU: 7 PID: 78 Comm: kswapd0 Kdump: loaded Tainted: G        W   E      6.1.1-smpxx #8
[ 1909.989588] Hardware name: MEDION MS-7848/MS-7848, BIOS M7848W08.20C 09/23/2013
[ 1909.989590] RIP: 0010:__queue_work+0x33b/0x3d0
[ 1909.989594] Code: 25 00 cd 01 00 f6 47 2c 20 74 18 e8 5f 65 00 00 48 85 c0 74 0e 48 8b 40 20 48 3b 68 08 0f 84 f5 fc ff ff 0f 0b e9 fe fd ff ff <0f> 0b e9 ee fd ff ff 83 c9 02 49 8d 57 68 e9 d7 fd ff ff 80 3d c3
[ 1909.989597] RSP: 0018:ffff888100ec7c38 EFLAGS: 00010003
[ 1909.989674] RAX: ffff8883a3ba7b50 RBX: ffffffff820c4860 RCX: 0000000000000000
[ 1909.989676] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888100070000
[ 1909.989679] RBP: ffff88818118d400 R08: ffff888100400028 R09: ffff888100400000
[ 1909.989682] R10: 0000000000000000 R11: ffffffff8225f318 R12: 0000000000000008
[ 1909.989684] R13: 0000000000000007 R14: ffff8883a3ba7b48 R15: ffff888107256100
[ 1909.989687] FS:  0000000000000000(0000) GS:ffff88840edc0000(0000) knlGS:0000000000000000
[ 1909.989690] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1909.989693] CR2: 00007f295eac7000 CR3: 0000000004010003 CR4: 00000000001706e0
[ 1909.989695] Call Trace:
[ 1909.989698]  <TASK>
[ 1909.989700]  mod_delayed_work_on+0x49/0x70
[ 1909.989704]  nfsd_courtesy_client_count+0x24/0x50 [nfsd]
[ 1909.989721]  shrink_slab.constprop.92+0x9d/0x370
[ 1909.989725]  shrink_node+0x1c5/0x420
[ 1909.989729]  balance_pgdat+0x25f/0x530
[ 1909.989733]  ? prepare_to_wait_event+0x120/0x120
[ 1909.989737]  kswapd+0x12c/0x360
[ 1909.989741]  ? prepare_to_wait_event+0x120/0x120
[ 1909.989745]  ? balance_pgdat+0x530/0x530
[ 1909.989749]  kthread+0xec/0x110
[ 1909.989751]  ? kthread_complete_and_exit+0x20/0x20
[ 1909.989755]  ret_from_fork+0x1f/0x30
[ 1909.989759]  </TASK>
[ 1909.989761] ---[ end trace 0000000000000000 ]---
[ 1909.989765] ------------[ cut here ]------------
[ 1909.989767] WARNING: CPU: 7 PID: 78 at kernel/workqueue.c:1500 __queue_work+0x33b/0x3d0
[ 1909.989771] Modules linked in: netconsole(E) af_packet(E) ip6table_mangle(E) ip6table_raw(E) iptable_raw(E) bridge(E) stp(E) llc(E) iscsi_ibft(E) iscsi_boot_sysfs(E) rfkill(E) nfnetlink(E) ebtable_filter(E) ebtables(E) ip6table_filter(E) ip6_tables(E) iptable_filter(E) bpfilter(E) usblp(E) joydev(E) intel_rapl_msr(E) intel_rapl_common(E) snd_hda_codec_realtek(E) snd_hda_codec_generic(E) ledtrig_audio(E) snd_hda_codec_hdmi(E) x86_pkg_temp_thermal(E) intel_powerclamp(E) coretemp(E) snd_hda_intel(E) snd_intel_dspcfg(E) iTCO_wdt(E) at24(E) intel_pmc_bxt(E) regmap_i2c(E) mei_hdcp(E) iTCO_vendor_support(E) kvm_intel(E) snd_hda_codec(E) nls_iso8859_1(E) snd_hwdep(E) nls_cp437(E) snd_hda_core(E) kvm(E) snd_pcm(E) r8169(E) irqbypass(E) snd_timer(E) i2c_i801(E) realtek(E) pcspkr(E) mei_me(E) mdio_devres(E) i2c_smbus(E) snd(E) lpc_ich(E) mfd_core(E) libphy(E) soundcore(E) mei(E) thermal(E) fan(E) intel_smartconnect(E) nfsd(E) auth_rpcgss(E) nfs_acl(E) lockd(E) grace(E) sch_fq_codel(E) sunrpc(E)
[ 1909.989796]  fuse(E) configfs(E) ip_tables(E) x_tables(E) hid_logitech_hidpp(E) hid_logitech_dj(E) uas(E) usb_storage(E) hid_generic(E) usbhid(E) nouveau(E) i2c_algo_bit(E) drm_ttm_helper(E) ttm(E) drm_display_helper(E) crct10dif_pclmul(E) crc32_pclmul(E) drm_kms_helper(E) ghash_clmulni_intel(E) sha512_ssse3(E) syscopyarea(E) sha512_generic(E) sysfillrect(E) xhci_pci(E) sysimgblt(E) ahci(E) ehci_pci(E) aesni_intel(E) fb_sys_fops(E) crypto_simd(E) libahci(E) cryptd(E) xhci_hcd(E) ehci_hcd(E) drm(E) libata(E) cec(E) usbcore(E) usb_common(E) rc_core(E) video(E) wmi(E) button(E) sd_mod(E) t10_pi(E) crc64_rocksoft_generic(E) crc64_rocksoft(E) crc64(E) vfat(E) fat(E) virtio_blk(E) virtio_mmio(E) virtio(E) virtio_ring(E) ext4(E) crc32c_intel(E) crc16(E) mbcache(E) jbd2(E) loop(E) sg(E) dm_multipath(E) dm_mod(E) scsi_dh_rdac(E) scsi_dh_emc(E) scsi_dh_alua(E) scsi_mod(E) scsi_common(E) msr(E) efivarfs(E) autofs4(E)
[ 1909.989838] CPU: 7 PID: 78 Comm: kswapd0 Kdump: loaded Tainted: G        W   E      6.1.1-smpxx #8
[ 1909.989841] Hardware name: MEDION MS-7848/MS-7848, BIOS M7848W08.20C 09/23/2013
[ 1909.989844] RIP: 0010:__queue_work+0x33b/0x3d0
[ 1909.989847] Code: 25 00 cd 01 00 f6 47 2c 20 74 18 e8 5f 65 00 00 48 85 c0 74 0e 48 8b 40 20 48 3b 68 08 0f 84 f5 fc ff ff 0f 0b e9 fe fd ff ff <0f> 0b e9 ee fd ff ff 83 c9 02 49 8d 57 68 e9 d7 fd ff ff 80 3d c3
[ 1909.989851] RSP: 0018:ffff888100ec7c38 EFLAGS: 00010003
[ 1909.989854] RAX: ffff8881737c2f50 RBX: ffffffff820c4860 RCX: 0000000000000000
[ 1909.989857] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888100070000
[ 1909.989859] RBP: ffff88818118d400 R08: ffff888100400028 R09: ffff888100400000
[ 1909.989862] R10: 0000000000000000 R11: ffffffff8225f318 R12: 0000000000000008
[ 1909.989865] R13: 0000000000000007 R14: ffff8881737c2f48 R15: ffff888107256100
[ 1909.989867] FS:  0000000000000000(0000) GS:ffff88840edc0000(0000) knlGS:0000000000000000
[ 1909.989870] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1909.989873] CR2: 00007f295eac7000 CR3: 0000000004010003 CR4: 00000000001706e0
[ 1909.989876] Call Trace:
[ 1909.989878]  <TASK>
[ 1909.989880]  mod_delayed_work_on+0x49/0x70
[ 1909.989884]  nfsd_courtesy_client_count+0x24/0x50 [nfsd]
[ 1909.989901]  shrink_slab.constprop.92+0x9d/0x370
[ 1909.989905]  shrink_node+0x1c5/0x420
[ 1909.989909]  balance_pgdat+0x25f/0x530
[ 1909.989913]  ? prepare_to_wait_event+0x120/0x120
[ 1909.989917]  kswapd+0x12c/0x360
[ 1909.989921]  ? prepare_to_wait_event+0x120/0x120
[ 1909.989925]  ? balance_pgdat+0x530/0x530
[ 1909.989929]  kthread+0xec/0x110
[ 1909.989932]  ? kthread_complete_and_exit+0x20/0x20
[ 1909.989935]  ret_from_fork+0x1f/0x30
[ 1909.989939]  </TASK>
[ 1909.989941] ---[ end trace 0000000000000000 ]---
[ 1909.989946] ------------[ cut here ]------------
[ 1909.989948] WARNING: CPU: 7 PID: 78 at kernel/workqueue.c:1500 __queue_work+0x33b/0x3d0
[ 1909.989952] Modules linked in: netconsole(E) af_packet(E) ip6table_mangle(E) ip6table_raw(E) iptable_raw(E) bridge(E) stp(E) llc(E) iscsi_ibft(E) iscsi_boot_sysfs(E) rfkill(E) nfnetlink(E) ebtable_filter(E) ebtables(E) ip6table_filter(E) ip6_tables(E) iptable_filter(E) bpfilter(E) usblp(E) joydev(E) intel_rapl_msr(E) intel_rapl_common(E) snd_hda_codec_realtek(E) snd_hda_codec_generic(E) ledtrig_audio(E) snd_hda_codec_hdmi(E) x86_pkg_temp_thermal(E) intel_powerclamp(E) coretemp(E) snd_hda_intel(E) snd_intel_dspcfg(E) iTCO_wdt(E) at24(E) intel_pmc_bxt(E) regmap_i2c(E) mei_hdcp(E) iTCO_vendor_support(E) kvm_intel(E) snd_hda_codec(E) nls_iso8859_1(E) snd_hwdep(E) nls_cp437(E) snd_hda_core(E) kvm(E) snd_pcm(E) r8169(E) irqbypass(E) snd_timer(E) i2c_i801(E) realtek(E) pcspkr(E) mei_me(E) mdio_devres(E) i2c_smbus(E) snd(E) lpc_ich(E) mfd_core(E) libphy(E) soundcore(E) mei(E) thermal(E) fan(E) intel_smartconnect(E) nfsd(E) auth_rpcgss(E) nfs_acl(E) lockd(E) grace(E) sch_fq_codel(E) sunrpc(E)
[ 1909.989977]  fuse(E) configfs(E) ip_tables(E) x_tables(E) hid_logitech_hidpp(E) hid_logitech_dj(E) uas(E) usb_storage(E) hid_generic(E) usbhid(E) nouveau(E) i2c_algo_bit(E) drm_ttm_helper(E) ttm(E) drm_display_helper(E) crct10dif_pclmul(E) crc32_pclmul(E) drm_kms_helper(E) ghash_clmulni_intel(E) sha512_ssse3(E) syscopyarea(E) sha512_generic(E) sysfillrect(E) xhci_pci(E) sysimgblt(E) ahci(E) ehci_pci(E) aesni_intel(E) fb_sys_fops(E) crypto_simd(E) libahci(E) cryptd(E) xhci_hcd(E) ehci_hcd(E) drm(E) libata(E) cec(E) usbcore(E) usb_common(E) rc_core(E) video(E) wmi(E) button(E) sd_mod(E) t10_pi(E) crc64_rocksoft_generic(E) crc64_rocksoft(E) crc64(E) vfat(E) fat(E) virtio_blk(E) virtio_mmio(E) virtio(E) virtio_ring(E) ext4(E) crc32c_intel(E) crc16(E) mbcache(E) jbd2(E) loop(E) sg(E) dm_multipath(E) dm_mod(E) scsi_dh_rdac(E) scsi_dh_emc(E) scsi_dh_alua(E) scsi_mod(E) scsi_common(E) msr(E) efivarfs(E) autofs4(E)
[ 1909.990020] CPU: 7 PID: 78 Comm: kswapd0 Kdump: loaded Tainted: G        W   E      6.1.1-smpxx #8
[ 1909.990023] Hardware name: MEDION MS-7848/MS-7848, BIOS M7848W08.20C 09/23/2013
[ 1909.990025] RIP: 0010:__queue_work+0x33b/0x3d0
[ 1909.990029] Code: 25 00 cd 01 00 f6 47 2c 20 74 18 e8 5f 65 00 00 48 85 c0 74 0e 48 8b 40 20 48 3b 68 08 0f 84 f5 fc ff ff 0f 0b e9 fe fd ff ff <0f> 0b e9 ee fd ff ff 83 c9 02 49 8d 57 68 e9 d7 fd ff ff 80 3d c3
[ 1909.990033] RSP: 0018:ffff888100ec7c38 EFLAGS: 00010003
[ 1909.990035] RAX: ffff888354cb7f50 RBX: ffffffff820c4860 RCX: 0000000000000000
[ 1909.990038] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff888100070000
[ 1909.990041] RBP: ffff88818118d400 R08: ffff888100400028 R09: ffff888100400000
[ 1909.990043] R10: 0000000000000000 R11: ffffffff8225f318 R12: 0000000000000008
[ 1909.990046] R13: 0000000000000007 R14: ffff888354cb7f48 R15: ffff888107256100
[ 1909.990049] FS:  0000000000000000(0000) GS:ffff88840edc0000(0000) knlGS:0000000000000000
[ 1909.990052] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1909.990054] CR2: 00007f295eac7000 CR3: 0000000004010003 CR4: 00000000001706e0
[ 1909.990057] Call Trace:
[ 1909.990059]  <TASK>
[ 1909.990061]  mod_delayed_work_on+0x49/0x70
[ 1909.990065]  nfsd_courtesy_client_count+0x24/0x50 [nfsd]
[ 1909.990081]  shrink_slab.constprop.92+0x9d/0x370
[ 1909.990085]  shrink_node+0x1c5/0x420
[ 1909.990089]  balance_pgdat+0x25f/0x530
[ 1909.990093]  ? prepare_to_wait_event+0x120/0x120
[ 1909.990097]  kswapd+0x12c/0x360
[ 1909.990101]  ? prepare_to_wait_event+0x120/0x120
[ 1909.990105]  ? balance_pgdat+0x530/0x530
[ 1909.990108]  kthread+0xec/0x110
[ 1909.990111]  ? kthread_complete_and_exit+0x20/0x20
[ 1909.990114]  ret_from_fork+0x1f/0x30
[ 1909.990119]  </TASK>
[ 1909.990121] ---[ end trace 0000000000000000 ]---
[ 1943.085109] sysrq: Resetting

From f46bdea12e223fab1845715dc8bfa1295d40c0f1 Mon Sep 17 00:00:00 2001
From: Dai Ngo <dai.ngo@xxxxxxxxxx>
Date: Fri, 23 Dec 2022 11:42:01 +0000
Subject: [PATCH] NFSD: fix WARN_ON_ONCE in __queue_delayed_work

Currently nfsd4_state_shrinker_worker can be schduled multiple times
from nfsd4_state_shrinker_count when memory is low. This causes
the WARN_ON_ONCE in __queue_delayed_work to trigger. In this case,
since __queue_delayed_work is called from kswapd and WARN_ON_ONCE
resulted in the call to printk which might try to allocate memory
which can cause deadlock.

Fix by adding a flag to indicate whether nfsd4_state_shrinker_worker
is active and skip calling mod_delayed_work from
nfsd4_state_shrinker_count.

Signed-off-by: Dai Ngo <dai.ngo@xxxxxxxxxx>
---
 fs/nfsd/netns.h     | 1 +
 fs/nfsd/nfs4state.c | 7 ++++++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/fs/nfsd/netns.h b/fs/nfsd/netns.h
index 8c854ba3285b..801d70926442 100644
--- a/fs/nfsd/netns.h
+++ b/fs/nfsd/netns.h
@@ -196,6 +196,7 @@ struct nfsd_net {
 	atomic_t		nfsd_courtesy_clients;
 	struct shrinker		nfsd_client_shrinker;
 	struct delayed_work	nfsd_shrinker_work;
+	bool			nfsd_shrinker_active;
 };
 
 /* Simple check to find out if a given net was properly initialized */
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index e1e85c21f12b..52f99be15ba2 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -4407,11 +4407,15 @@ nfsd4_state_shrinker_count(struct shrinker *shrink, struct shrink_control *sc)
 	struct nfsd_net *nn = container_of(shrink,
 			struct nfsd_net, nfsd_client_shrinker);
 
+	if (nn->nfsd_shrinker_active)
+		return 0;
 	count = atomic_read(&nn->nfsd_courtesy_clients);
 	if (!count)
 		count = atomic_long_read(&num_delegations);
-	if (count)
+	if (count) {
+		nn->nfsd_shrinker_active = true;
 		mod_delayed_work(laundry_wq, &nn->nfsd_shrinker_work, 0);
+	}
 	return (unsigned long)count;
 }
 
@@ -6249,6 +6253,7 @@ nfsd4_state_shrinker_worker(struct work_struct *work)
 
 	courtesy_client_reaper(nn);
 	deleg_reaper(nn);
+	nn->nfsd_shrinker_active = 0;
 }
 
 static inline __be32 nfs4_check_fh(struct svc_fh *fhp, struct nfs4_stid *stp)
-- 
2.9.5


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux