blk_queue_pluggable(BLK_DEFAULT_QUEUE(MAJOR_NR), no_plug_device);
would look nicer here.
> diff -u --recursive --new-file ../linux-2.3.99p9/linux/drivers/block/ll_rw_blk.c ./linux/drivers/block/ll_rw_blk.c
> --- ../linux-2.3.99p9/linux/drivers/block/ll_rw_blk.c Sat May 13 03:19:46 2000
> +++ ./linux/drivers/block/ll_rw_blk.c Sun May 21 17:01:21 2000
> @@ -586,7 +586,7 @@
> * Cut max_req in half to avoid running out and deadlocking.
> */
> if ((major == LOOP_MAJOR) || (major == NBD_MAJOR))
> - max_req >>= 1;
> + max_req >>= 2;
This just moves the problem, it is not a fix. Plugging definately needs
to be disabled or loop will break, I agree that that part is correct.
The reason why this shows up now is that plugging is now default for
all devices.
-- * Jens Axboe <axboe@suse.de> * SuSE Labs- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/