Skip to content

NVMe: Add support for SG_IO

Matthew Wilcox linux-nvme 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest0 of 3 patches 0 repliesNew

Patches in v3 No applies recorded yet

None of the 3 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/3] NVMe: Add support for SG_IO
Quoted 9 lines · Vishal Verma

These patches allow the nvme driver to handle the SG_IO ioctl. Applications may send any supported SCSI Command through the SG_IO framework. The supported command list as well as the translation reference is available on www.nvmexpress.org

Vishal Verma (3):
NVMe: Rename nvme.c to nvme-core.c
NVMe: Move dev, ns, iod structs to nvme.c
NVMe: Add nvme-scsi.c

I ended up modifying these patche before committing them.

- I split out the addition of the format command into its own patch. It's significant enough to be worth doing separately.
- The comment on nvme_free_iod() was part of the second patch instead of the final patch, for some reason.
- I moved the additions to the nvme_ns data structure to the final patch (was part of the second patch).
- Instead of storing the vendor_id from the identify result, just use the pci_dev's ->vendor element.

Hope I didn't break anything in the process :-)