summaryrefslogtreecommitdiffstats
path: root/fs/ncpfs/getopt.c
diff options
context:
space:
mode:
authorZhang Qiang2009-08-18 08:58:24 +0200
committerRyusuke Konishi2009-08-18 10:32:27 +0200
commit1154ecbd2f8298ef75609f5f8ed5aca96be599fb (patch)
treea6801fc442fecf4c0b2a1dc1d7a5350910983041 /fs/ncpfs/getopt.c
parentLinux 2.6.31-rc6 (diff)
downloadkernel-qcow2-linux-1154ecbd2f8298ef75609f5f8ed5aca96be599fb.tar.gz
kernel-qcow2-linux-1154ecbd2f8298ef75609f5f8ed5aca96be599fb.tar.xz
kernel-qcow2-linux-1154ecbd2f8298ef75609f5f8ed5aca96be599fb.zip
nilfs2: missing a read lock for segment writer in nilfs_attach_checkpoint()
'ns_cno' of structure 'the_nilfs' must be protected from segment writer, in other words, the caller of nilfs_get_checkpoint should hold read lock for nilfs->ns_segctor_sem. This patch adds the lock/unlock operations in nilfs_attach_checkpoint() when calling nilfs_cpfile_get_checkpoint(). Signed-off-by: Zhang Qiang <zhangqiang.buaa@gmail.com> Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs/ncpfs/getopt.c')
0 files changed, 0 insertions, 0 deletions