]> git.baikalelectronics.ru Git - kernel.git/commit
sunrpc: fix expiry of auth creds
authorDan Aloni <dan.aloni@vastdata.com>
Mon, 4 Jul 2022 12:56:57 +0000 (15:56 +0300)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 12 Jul 2022 14:53:10 +0000 (10:53 -0400)
commitd45302b3d65e4fbba1a00d020cdcce3a8ba137f3
treef27deb14c3b25627c5964f103d00becd2eda32e6
parent167e8530140c82a9d09b56fa95e9b4c58652a461
sunrpc: fix expiry of auth creds

Before this commit, with a large enough LRU of expired items (100), the
loop skipped all the expired items and was entirely ineffectual in
trimming the LRU list.

Fixes: ccebcd94652a ('SUNRPC: Clean up the AUTH cache code')
Signed-off-by: Dan Aloni <dan.aloni@vastdata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/auth.c