summaryrefslogtreecommitdiffstats
path: root/mm/readahead.c
diff options
context:
space:
mode:
authorWu Fengguang2010-03-05 22:42:01 +0100
committerLinus Torvalds2010-03-06 20:26:25 +0100
commit42e49608683ab25fbbbf9c40edb944601e543882 (patch)
tree5cc8beee91f235cdaf6be986f90275e04137c2bc /mm/readahead.c
parentmm/migrate.c: kill anon local variable from migrate_page_copy (diff)
downloadkernel-qcow2-linux-42e49608683ab25fbbbf9c40edb944601e543882.tar.gz
kernel-qcow2-linux-42e49608683ab25fbbbf9c40edb944601e543882.tar.xz
kernel-qcow2-linux-42e49608683ab25fbbbf9c40edb944601e543882.zip
vfs: take f_lock on modifying f_mode after open time
We'll introduce FMODE_RANDOM which will be runtime modified. So protect all runtime modification to f_mode with f_lock to avoid races. Signed-off-by: Wu Fengguang <fengguang.wu@intel.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: Christoph Hellwig <hch@infradead.org> Cc: Trond Myklebust <Trond.Myklebust@netapp.com> Cc: Chuck Lever <chuck.lever@oracle.com> Cc: <stable@kernel.org> [2.6.33.x] Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/readahead.c')
0 files changed, 0 insertions, 0 deletions