ref: 6ce1ea2f5013314612d9e720f5d1f6cf807f4ba8
parent: d58c4a62c233099a351c26b900085a4004d15595
author: 9ferno <[email protected]>
date: Tue Oct 25 04:36:38 EDT 2022
do not steal IO buffers with a Ref
--- a/iobuf.c
+++ b/iobuf.c
@@ -112,7 +112,7 @@
do{
p = s->back;
if(p->ref == 0 && p->dirties == 0 && canwlock(p)){
- if(p->dirties > 0){
+ if(p->dirties > 0 || p->ref > 0){
wunlock(p);
goto Another;
}