]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: narrow lock scope for cache trim() 10410/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Sat, 23 Jul 2016 03:02:41 +0000 (11:02 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Fri, 29 Jul 2016 04:34:29 +0000 (12:34 +0800)
commit9fd9296228a4bfc64753380154159981fdf92b60
tree89149015a98a7371bd951a484f8c21698e691083
parent01b10c3aaad8e076a32d269cfedf10a2ead348ab
os/bluestore: narrow lock scope for cache trim()

The cache trim() process can become be time consuming
when the cache size is huge. Since it can be operated
safely under its own internal mutex, we shall avoid
to hold irrelevant locks when possible, which is good
for performance.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/os/bluestore/BlueStore.cc