Skip to content

Commit

Permalink
os/bluestore: narrow lock scope for cache trim()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
xiexingguo committed Jul 26, 2016
1 parent 686c226 commit 8adff5c
Showing 1 changed file with 222 additions and 193 deletions.

0 comments on commit 8adff5c

Please sign in to comment.