Re: [PATCH] UBI: Block: Add blk-mq support

From: Jens Axboe
Date: Sun Nov 02 2014 - 20:21:18 EST


On 2014-11-02 15:49, Richard Weinberger wrote:
AFAICT blk-mq allocates one struct ubiblock_pdu per device.
As all IO is done via scattergather the memory footprint should be good.
But I'm sure Christoph can tell you the glory details.

That is true, the request list and pdu is allocated upfront. If that is a problem, the pdu need not be allocated upfront but could be done at IO time instead. With that comes a bit more complicated retry handling, for memory shortage situations.

--
Jens Axboe

--
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/