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

Christoph Hellwig hch at lst.de
Wed Apr 14 07:08:12 BST 2021


On Wed, Apr 14, 2021 at 10:46:29AM +0530, Kanchan Joshi wrote:
> nvme_clear_nvme_request() clears the nvme_command, which is unncessary for
> passthrough requests as nvme_command is overwritten immediately.
> Change nvme_clear_nvme_request() so that double memset for passthrough
> requests is avoided.

Please just move the memset to the one caller that wants ->cmd zeroed.



More information about the Linux-nvme mailing list