]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: add missing locking to protect i_snap_realm_item during split
authorSage Weil <sage@newdream.net>
Tue, 9 Mar 2010 20:52:26 +0000 (12:52 -0800)
committerSage Weil <sage@newdream.net>
Sun, 21 Mar 2010 04:33:07 +0000 (21:33 -0700)
commit9137ff9f9ff3133732830ba1ef94a9997d7863ae
treedb8aecde5b43263d9f3a2947663cb55de4414545
parent3a124acdaf0fa6a0459d5d27c6e0e48e3612ee85
ceph: add missing locking to protect i_snap_realm_item during split

All ci->i_snap_realm_item/realm->inodes_with_caps manipulation should be
protected by realm->inodes_with_caps_lock.  This bug would have only bit
us in a rare race with a realm split (during some snap creations).

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/snap.c