Commit 1f49828
DLPX-75524 avoid unnecessary nfserr_jukebox returns from nfsd_file_acquire (#8)
Upstream fix from kernel 5.12
nfsd: Don't keep looking up unhashed files in the nfsd file cache
If a file is unhashed, then we're going to reject it anyway and retry,
so make sure we skip it when we're doing the RCU lockless lookup.
This avoids a number of unnecessary nfserr_jukebox returns from
nfsd_file_acquire()
Fixes: 65294c1 ("nfsd: add a new struct file caching facility to nfsd")1 parent 7eb26e2 commit 1f49828
1 file changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
965 | 965 | | |
966 | 966 | | |
967 | 967 | | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
968 | 971 | | |
969 | 972 | | |
970 | 973 | | |
| |||
982 | 985 | | |
983 | 986 | | |
984 | 987 | | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
985 | 992 | | |
986 | 993 | | |
987 | 994 | | |
| |||
1032 | 1039 | | |
1033 | 1040 | | |
1034 | 1041 | | |
1035 | | - | |
| 1042 | + | |
1036 | 1043 | | |
1037 | 1044 | | |
1038 | | - | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
1039 | 1049 | | |
| 1050 | + | |
1040 | 1051 | | |
1041 | 1052 | | |
1042 | 1053 | | |
| |||
0 commit comments