stable-2.02 - bcache: support longer writes
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=e397423c419ec5db4137dc671d366ba650be6dde Commit: e397423c419ec5db4137dc671d366ba650be6dde Parent: 3388779570924154e5e4f657889e121a4bd10e87 Author: Zdenek Kabelac <[email protected]> AuthorDate: Wed Jun 24 13:37:23 2020 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Fri Oct 16 16:02:05 2020 +0200
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.
--- WHATS_NEW | 1 + lib/device/bcache.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.188 - ================================== + Fix running out of free buffers for async writing for larger writes. Fix conversion to raid from striped lagging type. Fix conversion to 'mirrored' mirror log with larger regionsize. Fix support for lvconvert --repair used by foreign apps (i.e. Docker).
lib/device/bcache.c +1 -1
@@ -950,7 +950,7 @@ static struct block *_new_block(struct bcache *cache, int fd, block_address i, bstruct 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) {