[PATCH v2 2/2] nvme: avoid memset for passthrough requests

Chaitanya Kulkarni Chaitanya.Kulkarni at wdc.com
Sun Apr 25 23:30:12 BST 2021


On 4/22/21 05:18, Kanchan Joshi wrote:
> nvme_clear_nvme_request() clears the nvme_command, which is unncessary for

The above line seems longer, please check.

> passthrough requests as nvme_command is overwritten immediately.
> Move clearing part from this helper to the caller, so that double memset
> for passthrough requests is avoided.
>
> Signed-off-by: Kanchan Joshi <joshi.k at samsung.com>






More information about the Linux-nvme mailing list