]> git.hungrycats.org Git - linux/commit
[PATCH] uml: avoid using elv_queue_empty
authorPaolo \'Blaisorblade\' Giarrusso <blaisorblade_spam@yahoo.it>
Wed, 8 Sep 2004 00:59:20 +0000 (17:59 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 8 Sep 2004 00:59:20 +0000 (17:59 -0700)
commit12508c4a434e3adce271ef229dbf501e9b23ce8c
treed5d40e5ed9da6a1deca5e022a2c6efab82590bee
parent7e8e597ed56c2322f31322d25d67dce6f3f29acb
[PATCH] uml: avoid using elv_queue_empty

Avoid using, in the UBD driver, the elv_queue_empty function.  It's for the
block layer only; in fact, the Anticipatory Scheduler can return NULL with
elv_next_request() even if the queue is not empty, because it waits for the
process to send another request before seeking on the disk.

In fact, if (with uml-ubd-any-elevator) we let UBD use any scheduler,
elevator=as will make the UBD driver Oops, if we don't have this patch.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/um/drivers/ubd_kern.c