]> git.baikalelectronics.ru Git - kernel.git/commit
KEYS: Have the garbage collector set its timer for live expired keys
authorDavid Howells <dhowells@redhat.com>
Wed, 16 Sep 2009 14:54:14 +0000 (15:54 +0100)
committerJames Morris <jmorris@namei.org>
Wed, 23 Sep 2009 18:03:47 +0000 (11:03 -0700)
commit85d6afb6c9189818017aa5462baad3d055ea73f3
treeb83f3d8d82597401bdee6a451facaa5c2de006d1
parent3e19528fcc894f991dc1587946e01e2c0b64a3f6
KEYS: Have the garbage collector set its timer for live expired keys

The key garbage collector sets a timer to start a new collection cycle at the
point the earliest key to expire should be considered garbage.  However, it
currently only does this if the key it is considering hasn't yet expired.

If the key being considering has expired, but hasn't yet reached the collection
time then it is ignored, and won't be collected until some other key provokes a
round of collection.

Make the garbage collector set the timer for the earliest key that hasn't yet
passed its collection time, rather than the earliest key that hasn't yet
expired.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/keys/gc.c