From 9fc1279b79f61af14ef901aa5f9f80536a57183a Mon Sep 17 00:00:00 2001 From: John Dyson Date: Fri, 13 Sep 1996 03:15:45 +0000 Subject: [PATCH] A modification that allows the driver strategy to modify the B_ASYNC flag broke things pretty bad (freeing buffer already on queue or other wierd buffer queue errors.) The broken code is left in commented out, but this makes the problem go away for now. --- sys/kern/vfs_bio.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 98f5b5e38e1..ed48a00515e 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -18,7 +18,7 @@ * 5. Modifications may be freely made to this file if the above conditions * are met. * - * $Id: vfs_bio.c,v 1.97 1996/09/06 05:37:53 gibbs Exp $ + * $Id: vfs_bio.c,v 1.98 1996/09/08 20:44:20 dyson Exp $ */ /* @@ -313,7 +313,8 @@ bwrite(struct buf * bp) curproc->p_stats->p_ru.ru_oublock++; VOP_STRATEGY(bp); - if ((bp->b_flags & B_ASYNC) == 0) { + /* if ((bp->b_flags & B_ASYNC) == 0) { */ + if ((oldflags & B_ASYNC) == 0) { int rtval = biowait(bp); if (oldflags & B_DELWRI) { -- 2.45.2