mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-27 04:32:16 +03:00
Add vdev property to disable vdev scheduler
Added vdev property to disable the vdev scheduler. The intention behind this property is to improve IOPS performance when using o_direct. Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com> Signed-off-by: MigeljanImeri <ImeriMigel@gmail.com> Closes #17358
This commit is contained in:
@@ -968,6 +968,9 @@ skip_open:
|
||||
else
|
||||
vd->vdev_nonrot = B_FALSE;
|
||||
|
||||
/* Is backed by a block device. */
|
||||
vd->vdev_is_blkdev = B_TRUE;
|
||||
|
||||
/* Set when device reports it supports TRIM. */
|
||||
error = g_getattr("GEOM::candelete", cp, &has_trim);
|
||||
vd->vdev_has_trim = (error == 0 && has_trim);
|
||||
|
||||
Reference in New Issue
Block a user