Skip to contentSkip to conversation

nfs-utils: don't try to unload nfsd module

PATCH Applied Andreas Oberritter 2 participants 2 messages Apr 30, 2012 – May 3, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nfs-utils: don't try to unload nfsd module

* When nfsserver get's stopped, "modprobe -r nfsd" may hang indefinitely. As there's no need to unload the module, just remove the call to modprobe.

---
 .../nfs-utils/nfs-utils/nfsserver                  |    8 --------
 .../nfs-utils/nfs-utils_1.2.3.bb                   |    2 +-
 2 files changed, 1 insertion(+), 9 deletions(-)
meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver +0 -8
index 69c8718..e460e26 100644
@@ -105,14 +105,6 @@ stop_nfsd(){
 	}
 	then
 		echo done
-		# This will remove, recursively, dependencies
-		echo -n 'removing nfsd kernel module: '
-		if modprobe -r nfsd
-		then
-			echo done
-		else
-			echo failed
-		fi
 	else
 		echo failed
 	fi
meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb +1 -1
index d047940..eb18aaa 100644
@@ -12,7 +12,7 @@ DEPENDS = "libcap libnfsidmap libevent util-linux tcp-wrappers"
 RDEPENDS_${PN} = "portmap"
 RRECOMMENDS_${PN} = "kernel-module-nfsd"
 
-PR = "r3"
+PR = "r4"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/nfs/nfs-utils-${PV}.tar.bz2 \
            file://nfs-utils-1.0.6-uclibc.patch \
Signature · 1 line
1.7.9.5
Applied
#1 lore raw
Quoted 34 lines · Andreas Oberritter

* When nfsserver get's stopped, "modprobe -r nfsd" may hang indefinitely. As there's no need to unload the module, just remove the call to modprobe.

---
  .../nfs-utils/nfs-utils/nfsserver                  |    8 --------
  .../nfs-utils/nfs-utils_1.2.3.bb                   |    2 +-
  2 files changed, 1 insertion(+), 9 deletions(-)
meta/recipes-connectivity/nfs-utils/nfs-utils/nfsserver +0 -8
index 69c8718..e460e26 100644
@@ -105,14 +105,6 @@ stop_nfsd(){
  	}
  	then
  		echo done
-		# This will remove, recursively, dependencies
-		echo -n 'removing nfsd kernel module: '
-		if modprobe -r nfsd
-		then
-			echo done
-		else
-			echo failed
-		fi
  	else
  		echo failed
  	fi
meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb +0 -0
index d047940..eb18aaa 100644

meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb DEPENDS = "libcap libnfsidmap libevent util-linux tcp-wrappers" · line 18

Quoted 8 lines
meta/recipes-connectivity/nfs-utils/nfs-utils_1.2.3.bb +1 -1
@@ -12,7 +12,7 @@ DEPENDS = "libcap libnfsidmap libevent util-linux tcp-wrappers"
  RDEPENDS_${PN} = "portmap"
  RRECOMMENDS_${PN} = "kernel-module-nfsd"
 
-PR = "r3"
+PR = "r4"
 
  SRC_URI = "${SOURCEFORGE_MIRROR}/nfs/nfs-utils-${PV}.tar.bz2 \
             file://nfs-utils-1.0.6-uclibc.patch \

Merged into OE-Core

Thanks
Sau!