]> granicus.if.org Git - zfs/commit
Add SCSI_PASSTHROUGH to zvols to enable UNMAP support
authorPaul Dagnelie <pcd@delphix.com>
Fri, 21 Jun 2019 16:40:56 +0000 (09:40 -0700)
committerTony Hutter <hutter2@llnl.gov>
Wed, 25 Sep 2019 18:27:48 +0000 (11:27 -0700)
commit1fd28bd8d4e102a4ce5e4910427f612c7cf73e68
treea26212499d1fc708582bbb6530e8b1f168217fbc
parentab24c9cd4cbba2c4d5cb68f3e1e08dcf2275dc34
Add SCSI_PASSTHROUGH to zvols to enable UNMAP support

When exporting ZVOLs as SCSI LUNs, by default Windows will not
issue them UNMAP commands. This reduces storage efficiency in
many cases.

We add the SCSI_PASSTHROUGH flag to the zvol's device queue,
which lets the SCSI target logic know that it can handle SCSI
commands.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: John Gallagher <john.gallagher@delphix.com>
Signed-off-by: Paul Dagnelie <pcd@delphix.com>
Closes #8933
module/zfs/zvol.c