]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: take export lock set before sending MExportDirDiscover
authorYan, Zheng <zheng.z.yan@intel.com>
Sat, 8 Dec 2012 16:53:28 +0000 (00:53 +0800)
committerSage Weil <sage@inktank.com>
Mon, 24 Dec 2012 04:01:12 +0000 (20:01 -0800)
commitdd4415768d41663e5d3b7d5c1c92fc9188ae8f01
tree1b51d103072cd3a9b15db26205fc636bf3dd58c3
parent96f48aa0566a84e1d8261d289cea167913098c9a
mds: take export lock set before sending MExportDirDiscover

Migrator::export_dir() only check if it can lock the export lock set
but not take the lock set. So someone else can change the path to
the exporting dir and confuse Migrator::handle_export_discover().

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
src/mds/Migrator.cc