diff options
author | 2010-03-01 15:16:56 -0800 | |
---|---|---|
committer | 2010-03-01 15:28:02 -0800 | |
commit | e9964c102312967a4bc1fd501cb628c4a3b19034 (patch) | |
tree | 7bccb0c4e29d94baaf8c30e008ec5aebdccf9c57 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | ceph: include migrating caps in issued set (diff) | |
download | wireguard-linux-e9964c102312967a4bc1fd501cb628c4a3b19034.tar.xz wireguard-linux-e9964c102312967a4bc1fd501cb628c4a3b19034.zip |
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: Sage Weil <sage@newdream.net>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions