]> git.baikalelectronics.ru Git - kernel.git/commit
TOMOYO: Simplify garbage collector.
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Sun, 25 Sep 2011 08:50:23 +0000 (17:50 +0900)
committerJames Morris <jmorris@namei.org>
Mon, 26 Sep 2011 00:46:20 +0000 (10:46 +1000)
commit41db0349b01038c5b2c624c98753ac1a79612959
treee29b2441cc916a174d7cd0b03cd18986ae545250
parentebb14fc57da9f6b9c9e82557fa8156c20fb4c4a3
TOMOYO: Simplify garbage collector.

When TOMOYO started using garbage collector at commit ec0361c6 "TOMOYO: Add
garbage collector.", we waited for close() before kfree(). Thus, elements to be
kfree()d were queued up using tomoyo_gc_list list.

But it turned out that tomoyo_element_linked_by_gc() tends to choke garbage
collector when certain pattern of entries are queued.

Since garbage collector is no longer waiting for close() since commit 8caa1a7a
"TOMOYO: Fix lockdep warning.", we can remove tomoyo_gc_list list and
tomoyo_element_linked_by_gc() by doing sequential processing.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: James Morris <jmorris@namei.org>
security/tomoyo/common.h
security/tomoyo/condition.c
security/tomoyo/domain.c
security/tomoyo/gc.c
security/tomoyo/memory.c