Commit cb5c7d668e1af269a9409721268f027b86abf29c

Authored by J. Bruce Fields
1 parent 54ca95eb36

svcrpc: ensure gss DESTROY tokens free contexts from cache

If we don't do this then we'll end up with a pointless unusable context
sitting in the cache until the time the original context would have
expired.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

net/sunrpc/auth_gss/svcauth_gss.c
... ... @@ -1126,6 +1126,7 @@
1126 1126 case RPC_GSS_PROC_DESTROY:
1127 1127 if (gss_write_verf(rqstp, rsci->mechctx, gc->gc_seq))
1128 1128 goto auth_err;
  1129 + rsci->h.expiry_time = get_seconds();
1129 1130 set_bit(CACHE_NEGATIVE, &rsci->h.flags);
1130 1131 if (resv->iov_len + 4 > PAGE_SIZE)
1131 1132 goto drop;