]> git.neil.brown.name Git - history.git/commit
[PATCH] allow the IO scheduler to pass an allocation hint to
authorAndrew Morton <akpm@osdl.org>
Sat, 5 Jul 2003 02:36:59 +0000 (19:36 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Sat, 5 Jul 2003 02:36:59 +0000 (19:36 -0700)
commit08f364136f8ebfd780d52960dd4834746190d98a
tree95001f201ced920596460ea4a37f8e75e78e3d7d
parent4e83dc011fab1ab827a991fadccf581f541bf880
[PATCH] allow the IO scheduler to pass an allocation hint to

From: Nick Piggin <piggin@cyberone.com.au>

This patch implements a hint so that AS can tell the request allocator to
allocate a request even if there are none left (the accounting is quite
flexible and easily handles overallocations).

elv_may_queue semantics have changed from "the elevator does _not_ want
another request allocated" to "the elevator _insists_ that another request is
allocated".  I couldn't see any harm ;)

Now in practice, AS will only allow _1_ request over the limit, because as
soon as the request is sent to AS, it stops anticipating.
drivers/block/as-iosched.c
drivers/block/elevator.c
drivers/block/ll_rw_blk.c