Hello,

5.15.0-121-generic is OK, there is no such problem with suspend-to-ram
or suspend-to-disk.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/2078704

Title:
  [REGRESSION] Unable to suspend-to-ram with NFS mounted on
  5.15.0-119-generic

Status in linux package in Ubuntu:
  Invalid
Status in linux source package in Jammy:
  Fix Committed

Bug description:
  Hello,

  Since Linux 5.15.0-119-generic, I am unable to suspend-to-ram my
  laptop when the NFS share from our OpenWRT router is mounted. I get
  the following errors in dmesg:

  [ 5205.898693] PM: suspend entry (deep)
  [ 5205.918450] Filesystems sync: 0.019 seconds
  [ 5205.918680] Freezing user space processes ... (elapsed 0.002 seconds) done.
  [ 5205.921666] OOM killer disabled.
  [ 5205.921668] Freezing remaining freezable tasks ... 
  [ 5225.933279] Freezing of tasks failed after 20.012 seconds (1 tasks 
refusing to freeze, wq_busy=0):
  [ 5225.933839] task:NFSv4 callback  state:I stack:    0 pid:222125 ppid:     
2 flags:0x00004000
  [ 5225.933867] Call Trace:
  [ 5225.933876]  <TASK>
  [ 5225.933891]  __schedule+0x2cd/0x890
  [ 5225.933930]  schedule+0x69/0x110
  [ 5225.933961]  nfs41_callback_svc+0x179/0x180 [nfsv4]
  [ 5225.934140]  ? wait_woken+0x60/0x60
  [ 5225.934160]  ? nfs_map_gid_to_group+0x120/0x120 [nfsv4]
  [ 5225.934318]  kthread+0x127/0x150
  [ 5225.934338]  ? set_kthread_struct+0x50/0x50
  [ 5225.934359]  ret_from_fork+0x1f/0x30
  [ 5225.934394]  </TASK>
  [ 5225.934412] Restarting kernel threads ... done.
  [ 5225.935170] OOM killer enabled.
  [ 5225.935178] Restarting tasks ... done.
  [ 5225.950919] PM: suspend exit

  After I unmount the share, the suspend works.

  To me it seems that it is caused by the backport of the patch "nfsd:
  don't allow nfsd threads to be signalled." (which got into 5.15.0-118)
  and the lack of the following commit (which is present in upstream
  5.15):

          commit 3feac2b5529335dff4f91d3e97b006a7096d63ec
          Author: NeilBrown <ne...@suse.de>
          Date:   Fri Jun 7 09:10:48 2024 -0400

              sunrpc: exclude from freezer when waiting for requests:

              Prior to v6.1, the freezer will only wake a kernel thread from an
              uninterruptible sleep.  Since we changed svc_get_next_xprt() to 
use and
              IDLE sleep the freezer cannot wake it.  We need to tell the 
freezer to
              ignore it instead.

              To make this work with only upstream commits, 5.15.y would need
              commit f5d39b020809 ("freezer,sched: Rewrite core freezer logic")
              which allows non-interruptible sleeps to be woken by the freezer.

              Fixes: 9b8a8e5e8129 ("nfsd: don't allow nfsd threads to be 
signalled.")
              Tested-by: Jon Hunter <jonath...@nvidia.com>
              Signed-off-by: NeilBrown <ne...@suse.de>
              Signed-off-by: Greg Kroah-Hartman <gre...@linuxfoundation.org>

  This was discussed earlier on LKML in this thread:

  
https://lore.kernel.org/all/171693973585.27191.10038342787850677...@noble.neil.brown.name/

  
  My hardware: HP 17-by0001nw laptop

  The NFS share is mounted over WiFi.

  /etc/exports on the router:
   
          /mnt/pendrive/nfs        
-fsid=0,rw,sync,no_subtree_check,all_squash,anonuid=1000,anongid=1000 
192.168.1.20 192.168.1.22 192.168.1.24

  mount parameters on my laptop (from /etc/fstab):

          192.168.1.3:/
  /media/netdrive         nfs
  
users,noauto,exec,sync,noac,lookupcache=none,nfsvers=4.2,soft,timeo=10,retrans=2
  0       0

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: linux-image-5.15.0-119-generic 5.15.0-119.129~20.04.1
  ProcVersionSignature: Ubuntu 5.15.0-119.129~20.04.1-generic 5.15.160
  Uname: Linux 5.15.0-119-generic x86_64
  ApportVersion: 2.20.11-0ubuntu27.27
  Architecture: amd64
  CasperMD5CheckResult: skip
  CurrentDesktop: GNOME-Classic:GNOME
  Date: Mon Sep  2 10:33:11 2024
  InstallationDate: Installed on 2020-09-12 (1450 days ago)
  InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=pl_PL.UTF-8
   SHELL=/bin/bash
  SourcePackage: linux-signed-hwe-5.15
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2078704/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to