]> git.hungrycats.org Git - linux/commit
[PATCH] Badness in as_completed_request warning
authorNick Piggin <piggin@cyberone.com.au>
Thu, 11 Sep 2003 00:06:46 +0000 (17:06 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Thu, 11 Sep 2003 00:06:46 +0000 (17:06 -0700)
commitcd36c392271a7775abf6be5f049d31434d37c798
treea3150cd8f219f1b7719b037cff7a5ef937468903
parent87dca48d2f8cb987778b35cd11be32afa39ca949
[PATCH] Badness in as_completed_request warning

Thish fixes Suparna's fsx and aio-stress and Dave Olien's concurrent
mke2fs problems.

It moves the hash adding into as_add_request.  This fixes a small bug
where a request could be added to the merge hash after being put on the
dispatch list.

It also moves responsibility for handling rbtree aliases (requests with
the same start sector) out of as_add_arq_rb and into its caller.  This
cleans up a layering problem which was causing the state machine to go
silly.  Now instead of forcing the alias out onto the dispatch list, we
chain the new request behind it, and they get sorted out at dispatch
time.
drivers/block/as-iosched.c