]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
WorkQueue: Taking care of potential race condition during pause()
authorSomnath Roy <somnath.roy@sandisk.com>
Sat, 24 May 2014 02:20:46 +0000 (19:20 -0700)
committerSomnath Roy <somnath.roy@sandisk.com>
Sat, 31 May 2014 01:46:08 +0000 (18:46 -0700)
commitb05da1ca9c0b9bc68605bfe152a9a03c72499d0e
treec729de80fc4d664511b1ef3871524f37b11ae81c
parentb15bf6bbcb5872d3bce0573b924064fac2001173
WorkQueue: Taking care of potential race condition during pause()
Introduced two variables to keep track of number of threads paused
and drained during threadpool pause/drain. The pause()/drain() call
is waiting till number of pause/drain threads equals to toral number of
thread pool threads.

Signed-off-by: Somnath Roy <somnath.roy@sandisk.com>
src/common/WorkQueue.cc
src/common/WorkQueue.h
src/osd/OSD.cc
src/osd/OSD.h