]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: avoid memset for passthrough requests
authorKanchan Joshi <joshi.k@samsung.com>
Tue, 27 Apr 2021 06:47:47 +0000 (12:17 +0530)
committerChristoph Hellwig <hch@lst.de>
Tue, 4 May 2021 07:35:49 +0000 (09:35 +0200)
commit3b68ae96107c56d471393cb59437e2f4c4fad603
treee0473e5abf54d0703ed08fa09aa7fd9d05d44494
parent657820e814fddce92d6423d1bd2fa85fc12ba071
nvme: avoid memset for passthrough requests

nvme_clear_nvme_request() clears the nvme_command, which is unncessary
for 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@samsung.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c