Re: Kernel Panic in 2.5.73-mm1 OOps part.

Lou Langholtz
2003-06-24T21:46:44Z

[-- Attachment #1: Type: text/plain, Size: 475 bytes --]

>
>
>> .. . .
>
> 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...

[-- Attachment #2: patch-2.5.73-nbd --]
[-- Type: text/plain, Size: 305 bytes --]

--- 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);
}