Re: Kernel Panic in 2.5.73-mm1 OOps part.

From: Lou Langholtz (ldl@aros.net)
Date: Tue Jun 24 2003 - 17:00:48 EST


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


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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jun 30 2003 - 22:00:17 EST