Re: [PATCH 2/5] [PATCH 2/5] revert: "blk-mq: blk-mq should free biosin pass through case"
From: Christoph Hellwig
Date: Sat Oct 05 2013 - 06:50:41 EST
On Fri, Oct 04, 2013 at 12:39:33PM -0500, Mike Christie wrote:
> Sorry, messed up function name. I meant blk_end_request*.
>
> For blk_execute_rq_nowait/blk_execute_rq and normal request use, the
> lower levels free the bios as they are completed by one of the
> blk_finish_request* calls. The caller of of
> blk_execute_rq_nowait/blk_execute_rq does not have to worry about
> freeing bios. It just frees the request when it is done with it.
Are you talking about bios or requests? All these functions deal with
requests, so the talk of bios really confuses me.
That beeing said the old ones all require the caller to free the
request, and complicate that with the useless refcounting that my patch
3 removes. Take a look at the other patches how all the calling
conventions can be nicely unified.
--
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/