As another data point, we're seeing this bug on one of our NFS servers running Ubuntu 24.04.1 with 6.8.0-51 kernel. Also experienced a similar issue to one of the above users with unable to start nfs-kernel-server and trying to restart the service.
[2164406.282362] INFO: task nfsd:8039 blocked for more than 122 seconds. [2164406.282421] Tainted: P O 6.8.0-51-generic #52-Ubuntu [2164406.282483] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [2164406.282547] task:nfsd state:D stack:0 pid:8039 tgid:8039 ppid:2 flags:0x00004000 [2164406.282580] Call Trace: [2164406.282585] <TASK> [2164406.282593] __schedule+0x27c/0x6b0 [2164406.282612] schedule+0x33/0x110 [2164406.282624] io_schedule+0x46/0x80 [2164406.282636] folio_wait_bit_common+0x136/0x330 [2164406.282654] ? __pfx_wake_page_function+0x10/0x10 [2164406.282668] folio_wait_bit+0x18/0x30 [2164406.282679] folio_wait_writeback+0x2b/0xa0 [2164406.282695] truncate_inode_partial_folio+0x81/0x180 [2164406.282715] truncate_inode_pages_range+0x23a/0x530 [2164406.282746] truncate_inode_pages_final+0x40/0x50 [2164406.282761] evict+0x298/0x2b0 [2164406.282775] ? vfs_getattr_nosec+0xb7/0x100 [2164406.282791] ? vfs_getattr+0x4d/0x80 [2164406.282805] iput+0x144/0x250 [2164406.282817] nfsd_unlink+0x179/0x370 [nfsd] [2164406.283053] nfsd3_proc_remove+0x68/0xd0 [nfsd] [2164406.283275] nfsd_dispatch+0xd4/0x220 [nfsd] [2164406.283495] svc_process_common+0x4fd/0x750 [sunrpc] [2164406.283794] ? __pfx_nfsd_dispatch+0x10/0x10 [nfsd] [2164406.284018] svc_process+0x132/0x1b0 [sunrpc] [2164406.284291] svc_handle_xprt+0x4d3/0x5d0 [sunrpc] [2164406.284558] svc_recv+0x18b/0x2e0 [sunrpc] [2164406.284788] ? __pfx_nfsd+0x10/0x10 [nfsd] [2164406.284986] nfsd+0x8b/0xe0 [nfsd] [2164406.285175] kthread+0xef/0x120 [2164406.285186] ? __pfx_kthread+0x10/0x10 [2164406.285196] ret_from_fork+0x44/0x70 [2164406.285205] ? __pfx_kthread+0x10/0x10 [2164406.285213] ret_from_fork_asm+0x1b/0x30 [2164406.285225] </TASK> × nfs-server.service - NFS server and services Loaded: loaded (/usr/lib/systemd/system/nfs-server.service; enabled; preset: enabled) Drop-In: /run/systemd/generator/nfs-server.service.d └─order-with-mounts.conf Active: failed (Result: timeout) since Wed 2025-01-22 14:39:33 PST; 11min ago Duration: 1month 4d 18h 49min 1.130s Main PID: 8031 (code=exited, status=0/SUCCESS) Tasks: 2 (limit: 462611) Memory: 392.0K (peak: 524.0K) CPU: 3ms CGroup: /system.slice/nfs-server.service ├─3754609 /usr/sbin/rpc.nfsd 0 └─3755576 /usr/sbin/exportfs -au Jan 22 14:35:02 nfs-server systemd[1]: nfs-server.service: Processes still around after SIGKILL. Ignoring. Jan 22 14:36:32 nfs-server systemd[1]: nfs-server.service: State 'stop-post' timed out. Terminating. Jan 22 14:38:02 nfs-server systemd[1]: nfs-server.service: State 'final-sigterm' timed out. Killing. Jan 22 14:38:02 nfs-server systemd[1]: nfs-server.service: Killing process 3755576 (exportfs) with signal SIGKILL. Jan 22 14:38:02 nfs-server systemd[1]: nfs-server.service: Killing process 3754609 (rpc.nfsd) with signal SIGKILL. Jan 22 14:39:33 nfs-server systemd[1]: nfs-server.service: Processes still around after final SIGKILL. Entering failed mode. Jan 22 14:39:33 nfs-server systemd[1]: nfs-server.service: Failed with result 'timeout'. Jan 22 14:39:33 nfs-server systemd[1]: nfs-server.service: Unit process 3754609 (rpc.nfsd) remains running after unit stopped. Jan 22 14:39:33 nfs-server systemd[1]: nfs-server.service: Unit process 3755576 (exportfs) remains running after unit stopped. Jan 22 14:39:33 nfs-server systemd[1]: Stopped nfs-server.service - NFS server and services. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2062568 Title: nfsd gets unresponsive after some hours of operation To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2062568/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs