diff options
author | 2014-09-12 19:21:11 +0800 | |
---|---|---|
committer | 2014-09-16 04:10:46 -0700 | |
commit | c6e489305eb5ed029002b037e36800032a994bb4 (patch) | |
tree | 11e5615fa53e993dd997556e839ba8014a350af1 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | f2fs: use nm_i->next_scan_nid as default for next_free_nid (diff) | |
download | wireguard-linux-c6e489305eb5ed029002b037e36800032a994bb4.tar.xz wireguard-linux-c6e489305eb5ed029002b037e36800032a994bb4.zip |
f2fs: fix a race condition in next_free_nid
The nm_i->fcnt checking is executed before spin_lock, so if another
thread delete the last free_nid from the list, the wrong nid may be
gotten. So fix the race condition by moving the nm_i->fnct checking
into spin_lock.
Signed-off-by: Huang, Ying <ying.huang@intel.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions