]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: take snap_rwsem when accessing snap realm's cached_context
authorYan, Zheng <zyan@redhat.com>
Fri, 1 May 2015 09:49:16 +0000 (17:49 +0800)
committerIlya Dryomov <idryomov@gmail.com>
Thu, 25 Jun 2015 08:49:28 +0000 (11:49 +0300)
commitefd077cb4dab2f1594aba723ed946ea4649f42cc
tree05a75dfc1ddf4729405f9cb6ce2f405b8e47791e
parente8c21ac1fcd58bb4ad4735ed7cc6e1809510fa91
ceph: take snap_rwsem when accessing snap realm's cached_context

When ceph inode's i_head_snapc is NULL, __ceph_mark_dirty_caps()
accesses snap realm's cached_context. So we need take read lock
of snap_rwsem.

Signed-off-by: Yan, Zheng <zyan@redhat.com>
fs/ceph/caps.c
fs/ceph/inode.c
fs/ceph/xattr.c