Re: [patch 2/2]block: simplify force plug flush code a little bit

From: Jens Axboe
Date: Wed Aug 24 2011 - 09:59:35 EST


On 2011-08-24 10:55, Shaohua Li wrote:
> Cleaning up the code a little bit. attempt_plug_merge() traverses the plug
> list anyway, we can do the request counting there, so stack size is reduced
> a little bit.
> The motivation here is I suspect if we should count the requests for each
> queue (task could handle multiple disks in the meantime), but my test doesn't
> show it's worthy doing. If somebody proves we should do it, below change
> will make that more easier.

Good change, applied.

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