A few people have reported this panic when softdep_disk_io_initiation() is called via buf_start() from cluster_wbuild(). It seems that softdep_disk_io_initiation() expects b_iocmd to be initialised before it is called, but cluster_wbuild() doesn't do this. I think it should be safe to just initialise b_iocmd before calling buf_start() as in the patch below. Could somebody who can reproduce this panic try the patch to see if it helps? The initialisation of all the fields in `tbp' could possibly be moved earlier, but I haven't looked carefully enough at the code to tell if that would break anything else. Ian Index: sys/kern/vfs_cluster.c =================================================================== RCS file: /dump/FreeBSD-CVS/src/sys/kern/vfs_cluster.c,v retrieving revision 1.137 diff -u -r1.137 vfs_cluster.c --- sys/kern/vfs_cluster.c 20 Apr 2003 07:29:50 -0000 1.137 +++ sys/kern/vfs_cluster.c 26 May 2003 18:16:01 -0000 _at__at_ -910,8 +910,10 _at__at_ splx(s); } /* end of code for non-first buffers only */ /* check for latent dependencies to be handled */ - if ((LIST_FIRST(&tbp->b_dep)) != NULL) + if ((LIST_FIRST(&tbp->b_dep)) != NULL) { + tbp->b_iocmd = BIO_WRITE; buf_start(tbp); + } /* * If the IO is via the VM then we do some * special VM hackery (yuck). Since the buffer'sReceived on Mon May 26 2003 - 10:01:58 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:09 UTC