]> 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)
commitce1bb5bebf17905bf1c53185d2a7f9945a162a7f
treef27deb14c3b25627c5964f103d00becd2eda32e6
parent7d14fc167c25e3e8911dd56bccdbe80a0f4e2d2b
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: 0f9df6b8d031 ('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