lkml.org 
[lkml]   [2003]   [Jun]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Kernel Panic in 2.5.73-mm1 OOps part.
>
>
>> .. . .
>
> 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);
}
\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.056 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site