mirror of
https://github.com/ceph/ceph
synced 2025-01-20 10:01:45 +00:00
os/bluestore/BlueStore: optimize WALWQ::flush()
In fact ThreadPool::drain will do a)wait WorkQueue::empty() is true b)wait processing thread to complete. So it can remove the same work which wait WorkQueue::empty(). Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
This commit is contained in:
parent
0ee99d609e
commit
4e1294030e
@ -749,11 +749,6 @@ public:
|
||||
}
|
||||
|
||||
void flush() {
|
||||
lock();
|
||||
while (!wal_queue.empty()) {
|
||||
_wait();
|
||||
}
|
||||
unlock();
|
||||
drain();
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user