Project

General

Profile

Actions

Feature #12940

closed

Add DKIOCFREE support to NVMe devices

Added by Jason King almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

With the impending integration of #12506, we will be able to add support for the DKIOCFREE ioctl to NVMe devices that support it. The NVMe specs state that the Dataset management command w/ the deallocate bit set should be thought of as the equivalent to a SATA TRIM or SCSI UNMAP command.

To avoid confusion, there is also an NVMe write zeros command as well, but that seems more for data wiping purposes. While it could also be used, since the spec explicitly states the dataset mgmt command w/ deallocate is the NVMe analogue to TRIM/UNMAP, we will opt to use that on NVMe devices that advertise support.

Actions

Also available in: Atom PDF