Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
LU-7549 mdt: cancel the atomic lock in the same thread
[fs/lustre-release.git]
/
lnet
/
utils
/
lnetunload
1
#!/bin/sh
2
3
lnds=$(echo k{sock,qsw,{open,i,v,o2,c}ib,ra,ptl,mx}lnd)
4
5
do_rmmod() {
6
mod=$1
7
if grep "^$mod" /proc/modules >/dev/null 2>&1; then
8
rmmod $mod
9
fi
10
}
11
12
do_rmmod lnet_selftest
13
14
if lctl network down > /dev/null 2>&1; then
15
for mod in $lnds; do do_rmmod $mod; done
16
17
rmmod lnet
18
rmmod libcfs
19
fi