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

ceph: fix flush_dirty_caps race with caps migration



The flush_dirty_caps() used to loop over the first entry of the cap_dirty
dirty list on the assumption that after calling ceph_check_caps() it would
be removed from the list.  This isn't true for caps that are being
migrated between MDSs, where we've received the EXPORT but not the IMPORT.

Instead, do a safe list iteration, and pin the next inode on the list via
the CEPH_I_NOFLUSH flag.

Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent 7af8f1e4
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