diff options
author | Christoph Hellwig <hch@lst.de> | 2018-05-22 12:10:02 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-06-01 15:37:35 +0300 |
commit | c7759fff22657d0e03b508f8f3ef97efbb10bc13 (patch) | |
tree | 7b1c0135a8b5aa4fe1837a20bef91a7b95925f33 /drivers/nvme/target/nvmet.h | |
parent | aafd3afe9d2e731f50477cd1b4db7efa86d2637a (diff) | |
download | linux-c7759fff22657d0e03b508f8f3ef97efbb10bc13.tar.xz |
nvmet: add a new nvmet_zero_sgl helper
Zeroes the SGL in the payload.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Diffstat (limited to 'drivers/nvme/target/nvmet.h')
-rw-r--r-- | drivers/nvme/target/nvmet.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nvme/target/nvmet.h b/drivers/nvme/target/nvmet.h index 32ebffcf464c..768abe203298 100644 --- a/drivers/nvme/target/nvmet.h +++ b/drivers/nvme/target/nvmet.h @@ -330,6 +330,7 @@ u16 nvmet_copy_to_sgl(struct nvmet_req *req, off_t off, const void *buf, size_t len); u16 nvmet_copy_from_sgl(struct nvmet_req *req, off_t off, void *buf, size_t len); +u16 nvmet_zero_sgl(struct nvmet_req *req, off_t off, size_t len); u32 nvmet_get_log_page_len(struct nvme_command *cmd); |