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

Kanchan Joshi joshiiitr at gmail.com
Wed Apr 14 17:27:56 BST 2021


On Wed, Apr 14, 2021 at 11:46 AM Christoph Hellwig <hch at lst.de> wrote:
>
> 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.
>
Fine, I'll do it that way.


-- 
Kanchan



More information about the Linux-nvme mailing list