commit | ac5b8b6f22118620cd1133d9943b1f31dc40a913 | [log] [tgz] |
---|---|---|
author | Linus Torvalds <torvalds@g5.osdl.org> | Fri Sep 09 15:42:34 2005 -0700 |
committer | Linus Torvalds <torvalds@g5.osdl.org> | Fri Sep 09 15:42:34 2005 -0700 |
tree | f38aa7461c85861ae74f72c33d1556686e1909cb | |
parent | f0eca9626c6becb6fc56106b2e4287c6c784af3d [diff] [blame] |
Preempt-safe RCU file usage Fix up fs/compat.c fixes.
diff --git a/fs/compat.c b/fs/compat.c index c2e0813..ac3fb9e 100644 --- a/fs/compat.c +++ b/fs/compat.c
@@ -1645,8 +1645,10 @@ goto out_nofds; /* max_fdset can increase, so grab it once to avoid race */ + rcu_read_lock(); fdt = files_fdtable(current->files); max_fdset = fdt->max_fdset; + rcu_read_unlock(); if (n > max_fdset) n = max_fdset;