> + if (plug) {
> + blk_add_rq_to_plug(plug, rq);
> + } else {
I'd just do an eary return after the blk_add_rq_to_plug call and leave
the rest of the code untouched and unindented.
Otherwise this looks good:
Reviewed-by: Christoph Hellwig <hch at lst.de>