]> git.karo-electronics.de Git - karo-tx-linux.git/commit
cifs: set a timeout on keys in cifs.idmap cache
authorJeff Layton <jlayton@redhat.com>
Fri, 19 Oct 2012 15:24:44 +0000 (11:24 -0400)
committerJeff Layton <jlayton@redhat.com>
Fri, 19 Oct 2012 15:24:44 +0000 (11:24 -0400)
commitdee767df17686eaf86a9ed488b8e4b1dce5b860e
treeaf3dce5f957afb7a56bcf6b69747df979d173507
parenta845918150bccfc0481563c06fbc752bb8fd6d22
cifs: set a timeout on keys in cifs.idmap cache

We want to allow unused idmap keys to eventually be purged from the
cache. Implement that by simply setting a timeout on the key whenever we
use it. We use the same default timeout as the NFS idmap cache, and add
a module parm to make it tunable.

Reviewed-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
fs/cifs/cifsacl.c