From: Zhang Qiang Date: Tue, 18 Aug 2009 06:58:24 +0000 (+0800) Subject: nilfs2: missing a read lock for segment writer in nilfs_attach_checkpoint() X-Git-Tag: v2.6.31-rc7~9^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1154ecbd2f8298ef75609f5f8ed5aca96be599fb;p=pandora-kernel.git 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 Signed-off-by: Ryusuke Konishi --- Reading git-diff-tree failed