Commit 5fb2516
nfsd: fix uninitialised slot info when a request is retried
A recent patch moved the assignment of seq->maxslots from before the
test for a resent request (which ends with a goto) to after, resulting
in it not being run in that case. This results in the server returning
bogus "high slot id" and "target high slot id" values.
The assignments to ->maxslots and ->target_maxslots need to be *after*
the out: label so that the correct values are returned in replies to
requests that are served from cache.
Fixes: 60aa656 ("nfsd: allocate new session-based DRC slots on demand.")
Signed-off-by: NeilBrown <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>1 parent b9382e2 commit 5fb2516
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4459 | 4459 | | |
4460 | 4460 | | |
4461 | 4461 | | |
| 4462 | + | |
| 4463 | + | |
4462 | 4464 | | |
4463 | 4465 | | |
4464 | 4466 | | |
4465 | | - | |
4466 | 4467 | | |
4467 | 4468 | | |
4468 | 4469 | | |
| |||
0 commit comments