OSDN Git Service

staging: lustre: ptlrpc: use delayed_work in sec_gc
authorNeilBrown <neilb@suse.com>
Thu, 1 Mar 2018 23:31:25 +0000 (10:31 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Mar 2018 12:20:22 +0000 (04:20 -0800)
commit236b4fcd5df73ab8d3c8d24aa6c1f9670db11ea4
treeee1fc281c503300986624f52e91e959b6b62f95f
parentc91664c83f463cefef128006ee0af6276fd1e613
staging: lustre: ptlrpc: use delayed_work in sec_gc

The garbage collection for security contexts currently
has a dedicated kthread which wakes up every 30 minutes
to discard old garbage.

Replace this with a simple delayed_work item on the
system work queue.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ptlrpc/sec_gc.c