Re: Kernel Panic in 2.5.73-mm1 OOps part.

Lou Langholtz (ldl@aros.net)
Tue, 24 Jun 2003 16:00:48 -0600


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-13098-1056492116-0001-2
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

>
>
>> .. . .
>
> I'm *guestimating* that the following patch will fix this problem. Let
> me know if you use it wether it makes this problem go away or not.
> Note that to me at least, blk_init_queue() should be responsible for
> initializing this memory not the driver. Either way, something has to
> initialize request_queue.kobj.kset otherwise I think this is the
> result when the kset field can be any value.
>
Woops... pressed send before doing the attachment...

--=_courier-13098-1056492116-0001-2
Content-Type: text/plain; name="patch-2.5.73-nbd"; charset=iso-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="patch-2.5.73-nbd"

--- drivers/block/nbd.c 2003-06-24 14:39:59.043718133 -0600
+++ drivers/block/nbd-new.c 2003-06-24 15:28:04.318158305 -0600
@@ -695,6 +695,7 @@
put_disk(disk);
goto out;
}
+ memset(disk->queue, 0, sizeof(struct request_queue));
blk_init_queue(disk->queue, do_nbd_request, &nbd_lock);
}

--=_courier-13098-1056492116-0001-2--