]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:18:22 +0000 (11:18 +0200)
commitcb744778252f07380649bc9b908c91a176df1360
treee659d68e4632f910c0255d97c394c8202baaa549
parent4e9a4bc95eb286ab18adb41657024e59658a2b79
sunrpc: fix expiry of auth creds

commit d45302b3d65e4fbba1a00d020cdcce3a8ba137f3 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sunrpc/auth.c