]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: move command clear into the various setup helpers
authorJens Axboe <axboe@kernel.dk>
Mon, 18 Oct 2021 12:45:06 +0000 (06:45 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 19 Oct 2021 18:40:51 +0000 (12:40 -0600)
commit6ca9e012cd97e85893702921f524b8e2044e52e6
tree025c1b3d839589d2a52b1bac30a24f890d33db40
parente852b779578daa8409803f1241b741ca208ccc3a
nvme: move command clear into the various setup helpers

We don't have to worry about doing extra memsets by moving it outside
the protection of RQF_DONTPREP, as nvme doesn't do partial completions.

This is in preparation for making the read/write fast path not do a full
memset of the command.

Reviewed-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c
drivers/nvme/host/zns.c