]> git.hungrycats.org Git - linux/commit
[PATCH] Request queue micropatch
authorJonathan Corbet <corbet@lwn.net>
Sun, 23 Mar 2003 17:24:21 +0000 (09:24 -0800)
committerDave Jones <davej@tetrachloride.(none)>
Sun, 23 Mar 2003 17:24:21 +0000 (09:24 -0800)
commit503be9865ab6bb195f2c53b591cf0eb5b75708f3
tree4157742f30934a339d3dd010a23a6af99b77422a
parent068130cfcffe4804d0fad5680c69020bfb0878b2
[PATCH] Request queue micropatch

FYI, I have gotten some most strange results with the equivalent of:

     request_queue_t *q = kmalloc(...);
     blk_init_queue(q, ...)

The problem turns out to be that q->backing_dev_info.memory_backed is not
initialized, leaving it to be whatever was there before.  The end result is
that my "driver" never saw write requests, but reads came through fine.
Took a while to figure out that one...

Here's the fix, for what it's worth.  (I had, BTW, tried just zeroing the
whole structure in blk_init_queue(), but that makes IDE oops at boot - it
sets q->queuedata early).
drivers/block/ll_rw_blk.c