[PATCH 2/2] nvmet: call blk_mq_free_request() directly
Logan Gunthorpe
logang at deltatee.com
Thu Aug 6 12:14:00 EDT 2020
On 2020-08-06 1:31 a.m., Chaitanya Kulkarni wrote:
> Instead of calling blk_put_request() which calls blk_mq_free_request(),
> call blk_mq_free_request() directly for NVMeOF passthru. This is to
> mainly avoid an extra function call in the completion path
> nvmet_passthru_req_done().
>
> Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni at wdc.com>
Looks good to me. It seems blk_mq_free_request() is currently always
used with nvme_alloc_request().
Reviewed-by: Logan Gunthorpe <logang at deltatee.com>
Thanks,
Logan
More information about the Linux-nvme
mailing list