Subject: Re: struct buf trouble...
To: Anders Magnusson <ragge@ludd.luth.se>
From: Chuck Silvers <chuq@chuq.com>
List: tech-kern
Date: 06/04/2001 23:16:27
hi ragge,

there's no special reason why b_proc isn't initialized,
I just didn't realize that anything would be looking at it.
what do you use it for?

-Chuck


On Mon, Jun 04, 2001 at 11:13:42PM +0200, Anders Magnusson wrote:
> Something strange happens here, and I'm not sure what:
> 
> In struct buf there is an element "b_proc", which according to the 
> comments in buf.h should be NULL if not doing phys I/O. But (at least)
> if the struct buf comes from aiodoned (allocated in genfs_putpages
> via pool_get from bufpool) it is instead set to 0xdeadbeef (I have
> debug turned on). Question:
> 
> 1) Is the comment wrong? (check for B_PHYS instead maybe?)
> 2) Is a bzero() missing somewhere, or so?
> 3) Have I screwed something real badly?
> 
> -- Ragge