Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 244976 - net-fs/nfs-utils - NFS mounts with open files broken after suspend to ram/wake cycle
Summary: net-fs/nfs-utils - NFS mounts with open files broken after suspend to ram/wak...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
Depends on:
Reported: 2008-10-30 16:35 UTC by idiotbg
Modified: 2011-06-28 10:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

fix replying to tcp resets in sunrpc (sunrcp-respond-promptly-to-server-tcp-resets.patch,4.31 KB, patch)
2008-11-28 18:26 UTC, Nick Loeve
Details | Diff
fix setting tcp reestablish timeout (fix-setting-of-xprt-reestablish-timeout.patch,2.54 KB, patch)
2008-11-28 18:27 UTC, Nick Loeve
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description idiotbg 2008-10-30 16:35:12 UTC
After long (say some hours) suspend to ram/wake cycle NFS filesystems does not respond and cannot be unmounted/remounted until all opened files are closed.

Reproducible: Always

Steps to Reproduce:
1. mount NFS filesystem
2. open some files (e.g. play some music)
3. suspend to ram and wake after some hours

Actual Results:  
applications holding opened files on the filesystems does not respond, neither the filesystems respond (df does not return, cd does not return .......). mount -o remount does not return, umount -f does not work. One has to kill the applications holding opened files in order to be able to umount and mount again the filesystems

Expected Results:  
unmount filesystems correctly before or after suspend
keep them mounted and working after wake

Linux t61 2.6.25-gentoo-r7 #9 SMP Sun Oct 26 12:34:35 CET 2008 x86_64 Intel(R) Core(TM)2 Duo CPU T8300 @ 2.40GHz GenuineIntel GNU/Linux
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2008-10-30 20:18:41 UTC
Please note which version of nfs-utils you are using and post your `emerge --info' too.
Comment 2 idiotbg 2008-10-30 21:18:01 UTC
I use nfs-utils 1.1.0-r1
emerge --info:

Portage (default/linux/amd64/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0,
2.6.25-gentoo-r7 x86_64)
System uname: 2.6.25-gentoo-r7 x86_64 Intel(R) Core(TM)2 Duo CPU T8300 @
Timestamp of tree: Wed, 22 Oct 2008 23:00:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.4.8
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
CFLAGS="-march=nocona -O2 -pipe"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/
/etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/
/etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/splash
/etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans
LINGUAS="bg en en_US"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --stats --timeout=180 --exclude=/distfiles
--exclude=/local --exclude=/packages"
USE="3dnow X Xaw3d aac acl acpi aim alsa amd64 apm arts berkdb bluetooth
branding bzip2 cairo calendar cddb cdr cli cracklib crypt ctype cups curl
curlwrappers d dbus dga directfb djvu dri dvd dvdr dvdread eds emboss encode
esd evo exif expat fam fbcon ffmpeg firefox flac fontconfig fortran gd gdbm gif
gimp gnome gnome-keyring gnuplot gnutls gpm gstreamer gtk gtk2 hal iconv icq
imagemagick imap ipod isdnlog jabber jack java jpeg jpeg2k kde kerberos lame
latex ldap libffi libnotify lirc lm_sensors lzo mad mailwrapper midi mikmod
mime mmx mozilla mp3 mpeg mplayer msn mudflap multilib multislot mysql nas
ncurses nls nptl nptlonly objc objc++ objc-gc ogg opengl openmp pam pcmcia pcre
pdf perl png ppds pppd python qt3 qt3support qt4 quicktime rdesktop readline
reflection samba sdl session sockets sox spell spl sqlite sse sse2 ssl
startup-notification subversion svg sysfs tcpd tiff tk truetype unicode usb v4l
v4l2 vnc vorbis wifi xine xinerama xml xmlrpc xorg xv yahoo zlib"
ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x
ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3
trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw
asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa
lfloat linear meter mmap_emul mulaw multi null plug rate route share shm
softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon
authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile
authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate
dir disk_cache env expires ext_filter file_cache filter headers include info
log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling
status unique_id userdir usertrack vhost_alias" ELIBC="glibc"
INPUT_DEVICES="edev keyboard mouse synaptics" KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses
text" LINGUAS="bg en en_US" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"

Comment 3 Michael Münch (RETIRED) gentoo-dev 2008-11-21 11:01:19 UTC
Seems to be the same problem as:
Comment 4 Nick Loeve 2008-11-25 18:46:29 UTC
There is a modified version of the patch attached to the b.k.o bug in linus' tree at

In that bug report a user reports the exact same behaviour, and this patch seems to fix it.
Comment 5 Nick Loeve 2008-11-25 18:48:50 UTC
Hmmm, I am not sure how long that tinyurl link will stay around for so here is the full link:;a=commit;h=2a9e1cfa23fb62da37739af81127dab5af095d99
Comment 6 Nick Loeve 2008-11-28 18:26:31 UTC
Created attachment 173677 [details, diff]
fix replying to tcp resets in sunrpc
Comment 7 Nick Loeve 2008-11-28 18:27:03 UTC
Created attachment 173679 [details, diff]
fix setting tcp reestablish timeout
Comment 8 Nick Loeve 2008-11-28 18:27:27 UTC
Both patches from need to be applied.

Could you please test the two attached patches (please apply them in the order they were attached) against gentoo-sources-2.6.27-r4? 

They apply ok, and are confirmed to fix the issue in
Comment 9 Nick Loeve 2008-11-28 18:36:20 UTC
Patches also messily apply to gentoo-sources-2.6.26-r3
Comment 10 Mike Pagano gentoo-dev 2008-11-30 17:21:07 UTC
The first patch has made the mainline:

SUNRPC: Respond promptly to server TCP resets;a=commitdiff_plain;h=2a9e1cfa23fb62da37739af81127dab5af095d99