Commit 7c24fa2
NFSD: replace delayed_work with work_struct for nfsd_client_shrinker
Since nfsd4_state_shrinker_count always calls mod_delayed_work with
0 delay, we can replace delayed_work with work_struct to save some
space and overhead.
Also add the call to cancel_work after unregister the shrinker
in nfs4_state_shutdown_net.
Signed-off-by: Dai Ngo <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>1 parent f385f7d commit 7c24fa2
2 files changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4411 | 4411 | | |
4412 | 4412 | | |
4413 | 4413 | | |
4414 | | - | |
| 4414 | + | |
4415 | 4415 | | |
4416 | 4416 | | |
4417 | 4417 | | |
| |||
6225 | 6225 | | |
6226 | 6226 | | |
6227 | 6227 | | |
6228 | | - | |
6229 | | - | |
| 6228 | + | |
6230 | 6229 | | |
6231 | 6230 | | |
6232 | 6231 | | |
| |||
8056 | 8055 | | |
8057 | 8056 | | |
8058 | 8057 | | |
8059 | | - | |
| 8058 | + | |
8060 | 8059 | | |
8061 | 8060 | | |
8062 | 8061 | | |
| |||
8163 | 8162 | | |
8164 | 8163 | | |
8165 | 8164 | | |
| 8165 | + | |
8166 | 8166 | | |
8167 | 8167 | | |
8168 | 8168 | | |
| |||
0 commit comments