Commit f657f8e
nfs: don't atempt blocking locks on nfs reexports
NFS implements blocking locks by blocking inside its lock method. In
the reexport case, this blocks the nfs server thread, which could lead
to deadlocks since an nfs server thread might be required to unlock the
conflicting lock. It also causes a crash, since the nfs server thread
assumes it can free the lock when its lm_notify lock callback is called.
Ideal would be to make the nfs lock method return without blocking in
this case, but for now it works just not to attempt blocking locks. The
difference is just that the original client will have to poll (as it
does in the v4.0 case) instead of getting a callback when the lock's
available.
Signed-off-by: J. Bruce Fields <[email protected]>
Acked-by: Anna Schumaker <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>1 parent 7f024fc commit f657f8e
3 files changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
184 | 184 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6835 | 6835 | | |
6836 | 6836 | | |
6837 | 6837 | | |
| 6838 | + | |
6838 | 6839 | | |
6839 | 6840 | | |
6840 | 6841 | | |
| |||
6856 | 6857 | | |
6857 | 6858 | | |
6858 | 6859 | | |
| 6860 | + | |
6859 | 6861 | | |
6860 | 6862 | | |
6861 | 6863 | | |
| |||
6904 | 6906 | | |
6905 | 6907 | | |
6906 | 6908 | | |
6907 | | - | |
| 6909 | + | |
| 6910 | + | |
6908 | 6911 | | |
6909 | 6912 | | |
6910 | 6913 | | |
| |||
6916 | 6919 | | |
6917 | 6920 | | |
6918 | 6921 | | |
6919 | | - | |
| 6922 | + | |
| 6923 | + | |
6920 | 6924 | | |
6921 | 6925 | | |
6922 | 6926 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| 224 | + | |
| 225 | + | |
224 | 226 | | |
225 | 227 | | |
226 | 228 | | |
| |||
0 commit comments