Jonathan Corbet db1dd4d376 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 <hch@lst.de>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
2009-03-16 08:32:27 -06:00
..
2009-01-07 09:59:58 -08:00
2009-01-07 09:59:58 -08:00
2008-10-22 10:05:28 -07:00
2008-11-13 14:45:06 -08:00
2009-01-07 17:24:34 -08:00
2009-03-16 08:32:27 -06:00
2009-01-07 10:00:11 -08:00
2009-01-27 16:15:37 -08:00
2009-01-07 10:00:11 -08:00
2009-01-05 11:54:28 -05:00
2009-01-07 10:00:11 -08:00
2008-07-21 15:16:10 -07:00
2009-01-07 10:00:02 -08:00
2008-07-21 15:16:10 -07:00
2009-01-07 18:05:39 -08:00
2008-10-17 14:40:53 -07:00
2008-10-16 09:24:46 -07:00