[linux-lvm] Re: System hangs after echo value > /sys/block/dm-0/queue/nr_requests

Mike Christie michaelc at cs.wisc.edu
Thu Jan 1 11:29:05 UTC 2004


Andrew Morton wrote:

> Where queue_requests_store() does wake_up(&rl->wait[READ]);
> 
> It looks like nobody has called blk_init_queue() for this queue and the
> waitqueue head is uninitialised.
> 

DM, MD, rd and loop use blk_alloc_queue and blk_queue_make_request to 
initialize their queue, because they only use the make_request_fn. The 
attached patch prevents the queue from being registered if only 
blk_alloc_queue was called.

Mike Christie
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: queue_attr.patch
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20040101/a4fe8613/attachment.ksh>


More information about the linux-lvm mailing list