Re: [PATCH 1/1] NBD: make nbd default to deadline I/O scheduler

From: Andrew Morton
Date: Fri Feb 08 2008 - 17:05:32 EST


On Fri, 08 Feb 2008 16:23:01 -0500
Paul Clements <paul.clements@xxxxxxxxxxxx> wrote:

> --- ./drivers/block/nbd.c.max_nbd_killed 2008-02-07 16:46:24.000000000 -0500
> +++ ./drivers/block/nbd.c 2008-02-08 16:13:01.000000000 -0500
> @@ -667,6 +667,12 @@ static int __init nbd_init(void)
> put_disk(disk);
> goto out;
> }
> + if (elevator_init(disk->queue, "deadline") != 0) {
> + if (elevator_init(disk->queue, "noop") != 0) {
> + put_disk(disk);
> + goto out;
> + }
> + }
> }

- if the user doesn't have deadline or noop configured, NBD will now
fail. That's a non-backward-compatible change.

- when it fails, it will fail silently. Puzzled and angry users.

- when it fails, it will inappropriately return -ENOMEM.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/