commit | 3c0f26ff9d040c6193b33689bbc03103854dba4d | [log] [tgz] |
---|---|---|
author | Mike Christie <mchristi@redhat.com> | Tue Nov 28 12:40:35 2017 -0600 |
committer | Nicholas Bellinger <nab@linux-iscsi.org> | Fri Jan 12 15:07:16 2018 -0800 |
tree | c0297332b86f96377f21745e40668c33710c5bfd | |
parent | 1a1fc0b88e9019cb3b2f291bdcb2d03d38614690 [diff] |
tcmu: fix free block calculation The blocks_left calculation does not account for free blocks between 0 and thresh, so we could be queueing/waiting when there are enough blocks free. This has us add in the blocks between 0 and thresh as well as at the end from thresh to DATA_BLOCK_BITS. Signed-off-by: Mike Christie <mchristi@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>