]> git.karo-electronics.de Git - mv-sheeva.git/commit
cifs: implement recurring workqueue job to prune old tcons
authorJeff Layton <jlayton@redhat.com>
Wed, 6 Oct 2010 23:51:12 +0000 (19:51 -0400)
committerSteve French <sfrench@us.ibm.com>
Fri, 8 Oct 2010 03:31:21 +0000 (03:31 +0000)
commit2de970ff69bbcc5a4b7440df669a595b2b1acd73
treeec710893fcd1aa6313a3bbe2eafb3f463b364afc
parent3aa1c8c2900065a51268430ab48a1b42fdfe5b45
cifs: implement recurring workqueue job to prune old tcons

Create a workqueue job that cleans out unused tlinks. For now, it uses
a hardcoded expire time of 10 minutes. When it's done, the work rearms
itself. On umount, the work is cancelled before tearing down the tlink
tree.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifs_fs_sb.h
fs/cifs/connect.c