Fix bogus KASSERT: if there is a xbdi_io, xbdi_pendingreqs must *NOT* be 0.
Not sure why it has stayed unoticed for so long ...
This commit is contained in:
parent
711bd7d5de
commit
54c647c0b1
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: xbdback_xenbus.c,v 1.47 2011/10/24 18:13:50 jym Exp $ */
|
||||
/* $NetBSD: xbdback_xenbus.c,v 1.48 2011/10/25 17:25:47 bouyer Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006 Manuel Bouyer.
|
||||
|
@ -26,7 +26,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: xbdback_xenbus.c,v 1.47 2011/10/24 18:13:50 jym Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: xbdback_xenbus.c,v 1.48 2011/10/25 17:25:47 bouyer Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -1030,7 +1030,7 @@ xbdback_co_cache_flush(struct xbdback_instance *xbdi, void *obj)
|
|||
/* Some I/Os are required for this instance. Process them. */
|
||||
KASSERT(xbdi->xbdi_io->xio_operation == BLKIF_OP_READ ||
|
||||
xbdi->xbdi_io->xio_operation == BLKIF_OP_WRITE);
|
||||
KASSERT(xbdi->xbdi_pendingreqs == 0);
|
||||
KASSERT(xbdi->xbdi_pendingreqs > 0);
|
||||
xbdi->xbdi_cont = xbdback_co_flush;
|
||||
xbdi->xbdi_cont_aux = xbdback_co_cache_flush2;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue