]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: drop lock during most of scrub; only disallow concurrent writes
authorSage Weil <sage@newdream.net>
Thu, 4 Dec 2008 19:17:58 +0000 (11:17 -0800)
committerSage Weil <sage@newdream.net>
Thu, 4 Dec 2008 20:18:18 +0000 (12:18 -0800)
commit4cfb679bce99b33e1344ad31d2a557e18d393af5
tree1468d27e7365cf464d3bb594be6dfb21725a660f
parent3925eea8952aee8e868b7d73df026004e306bbb6
osd: drop lock during most of scrub; only disallow concurrent writes

Make the PG go read-only during a scrub.  Only take the pg lock
when absolutely necessary.  Wait for any pending writes to
complete before starting the scrub.
src/osd/OSD.cc
src/osd/PG.cc
src/osd/PG.h
src/osd/ReplicatedPG.cc
src/osd/ReplicatedPG.h