* [PATCH 1/2] blk_resize_tags_fix
@ 2004-08-09 15:50 brking
2004-08-09 18:11 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: brking @ 2004-08-09 15:50 UTC (permalink / raw)
To: axboe; +Cc: linux-kernel, brking
init_tag_map should not initialize the busy_list, refcnt, or busy fields
in the tag map since blk_queue_resize_tags can call it while requests are
active. Patch moves this initialization into blk_queue_init_tags.
Signed-off-by: Brian King <brking@us.ibm.com>
---
linux-2.6.8-rc3-bjking1/drivers/block/ll_rw_blk.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff -puN drivers/block/ll_rw_blk.c~blk_resize_tags_fix drivers/block/ll_rw_blk.c
--- linux-2.6.8-rc3/drivers/block/ll_rw_blk.c~blk_resize_tags_fix 2004-08-09 10:20:23.000000000 -0500
+++ linux-2.6.8-rc3-bjking1/drivers/block/ll_rw_blk.c 2004-08-09 10:22:56.000000000 -0500
@@ -559,9 +559,6 @@ init_tag_map(request_queue_t *q, struct
for (i = depth; i < bits * BLK_TAGS_PER_LONG; i++)
__set_bit(i, tags->tag_map);
- INIT_LIST_HEAD(&tags->busy_list);
- tags->busy = 0;
- atomic_set(&tags->refcnt, 1);
return 0;
fail:
kfree(tags->tag_index);
@@ -587,6 +584,10 @@ int blk_queue_init_tags(request_queue_t
if (init_tag_map(q, tags, depth))
goto fail;
+
+ INIT_LIST_HEAD(&tags->busy_list);
+ tags->busy = 0;
+ atomic_set(&tags->refcnt, 1);
} else if (q->queue_tags) {
if ((rc = blk_queue_resize_tags(q, depth)))
return rc;
_
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 1/2] blk_resize_tags_fix
2004-08-09 15:50 [PATCH 1/2] blk_resize_tags_fix brking
@ 2004-08-09 18:11 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2004-08-09 18:11 UTC (permalink / raw)
To: brking; +Cc: linux-kernel
On Mon, Aug 09 2004, brking@us.ibm.com wrote:
>
> init_tag_map should not initialize the busy_list, refcnt, or busy fields
> in the tag map since blk_queue_resize_tags can call it while requests are
> active. Patch moves this initialization into blk_queue_init_tags.
>
> Signed-off-by: Brian King <brking@us.ibm.com>
Thanks Brian, applied.
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-08-09 18:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-09 15:50 [PATCH 1/2] blk_resize_tags_fix brking
2004-08-09 18:11 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox