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-03-16 08:32:27 -06:00
2009-03-16 08:32:27 -06:00
2006-10-04 07:55:32 -07:00
2006-10-04 07:55:32 -07:00
2006-10-04 07:55:32 -07:00
2006-10-04 07:55:32 -07:00
2008-08-19 10:02:53 +02:00
2008-05-27 15:56:20 +02:00
2007-07-16 09:05:40 -07:00
2006-10-03 23:01:26 +02:00
2006-10-03 23:01:26 +02:00
2007-07-01 12:29:44 -07:00
2006-06-26 18:35:02 +02:00
2006-10-03 23:01:26 +02:00
2006-10-04 07:55:32 -07:00
2009-03-16 08:32:27 -06:00
2006-10-04 07:55:32 -07:00
2006-10-04 07:55:32 -07:00
2006-12-04 02:00:36 -05:00
2009-03-16 08:32:27 -06:00
2006-10-03 23:01:26 +02:00
2006-10-03 23:01:26 +02:00
2009-03-16 08:32:27 -06:00

The modular sound driver patches were funded by Red Hat Software 
(www.redhat.com). The sound driver here is thus a modified version of 
Hannu's code. Please bear that in mind when considering the appropriate
forums for bug reporting. 

Alan Cox