From: Jonathan Corbet Date: Fri, 6 Feb 2009 22:25:24 +0000 (-0700) Subject: Use f_lock to protect f_flags X-Git-Tag: v2.6.30-rc1~654^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db1dd4d376134eba0e08af523b61cc566a4ea1cd;p=pandora-kernel.git Use f_lock to protect f_flags Traditionally, changes to struct file->f_flags have been done under BKL protection, or with no protection at all. This patch causes all f_flags changes after file open/creation time to be done under protection of f_lock. This allows the removal of some BKL usage and fixes a number of longstanding (if microscopic) races. Reviewed-by: Christoph Hellwig Cc: Al Viro Signed-off-by: Jonathan Corbet --- Reading git-diff-tree failed