mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-30 17:18:21 +03:00
bcache: support longer writes
When initiated larger write request, it may have happened, bcache got out of free chunks - fix the loop, that is supposed to wait until next free chunk becomes avain available.
This commit is contained in:
parent
04bba5ea42
commit
6eb9eba59b
@ -1,5 +1,6 @@
|
||||
Version 2.03.10 -
|
||||
=================================
|
||||
Fix running out of free buffers for async writing for larger writes.
|
||||
Add integrity with raid capability.
|
||||
Fix support for lvconvert --repair used by foreign apps (i.e. Docker).
|
||||
|
||||
|
@ -950,7 +950,7 @@ static struct block *_new_block(struct bcache *cache, int fd, block_address i, b
|
||||
struct block *b;
|
||||
|
||||
b = _alloc_block(cache);
|
||||
while (!b && !dm_list_empty(&cache->clean)) {
|
||||
while (!b) {
|
||||
b = _find_unused_clean_block(cache);
|
||||
if (!b) {
|
||||
if (can_wait) {
|
||||
|
Loading…
Reference in New Issue
Block a user