From: Tetsuo Handa Date: Sun, 26 Jun 2011 14:20:55 +0000 (+0900) Subject: TOMOYO: Fix lockdep warning. X-Git-Tag: v3.1-rc1~133^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e503bbb435ae418aebbe4aeede1c6f2a33d6f74;p=pandora-kernel.git TOMOYO: Fix lockdep warning. Currently TOMOYO holds SRCU lock upon open() and releases it upon close() because list elements stored in the "struct tomoyo_io_buffer" instances are accessed until close() is called. However, such SRCU usage causes lockdep to complain about leaving the kernel with SRCU lock held. This patch solves the warning by holding/releasing SRCU upon each read()/write(). This patch is doing something similar to calling kfree() without calling synchronize_srcu(), by selectively deferring kfree() by keeping track of the "struct tomoyo_io_buffer" instances. Signed-off-by: Tetsuo Handa Signed-off-by: James Morris --- Reading git-diff-tree failed