Skip to content
Commit 91dee39e authored by Sage Weil's avatar Sage Weil
Browse files

ceph: fix snap realm splits



The snap realm split was checking i_snap_realm, not the list_head, to
determine if an inode belonged in the new realm.  The check always failed,
which meant we always moved the inode, corrupting the old realm's list and
causing various crashes.

Also wait to release old realm reference to avoid possibility of use after
free.

Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent c10f5e12
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment