1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +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:
Zdenek Kabelac 2020-06-24 13:37:23 +02:00
parent 04bba5ea42
commit 6eb9eba59b
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.03.10 - Version 2.03.10 -
================================= =================================
Fix running out of free buffers for async writing for larger writes.
Add integrity with raid capability. Add integrity with raid capability.
Fix support for lvconvert --repair used by foreign apps (i.e. Docker). Fix support for lvconvert --repair used by foreign apps (i.e. Docker).

View File

@ -950,7 +950,7 @@ static struct block *_new_block(struct bcache *cache, int fd, block_address i, b
struct block *b; struct block *b;
b = _alloc_block(cache); b = _alloc_block(cache);
while (!b && !dm_list_empty(&cache->clean)) { while (!b) {
b = _find_unused_clean_block(cache); b = _find_unused_clean_block(cache);
if (!b) { if (!b) {
if (can_wait) { if (can_wait) {