From 6d8243d1b1821212e604171d5172c0cee5ed32c0 Mon Sep 17 00:00:00 2001 From: Steffen Maier Date: Fri, 10 Feb 2023 11:26:53 +0100 Subject: [PATCH] zdev: add default queue_depth value for zfcp-lun scsi_device MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This avoids exporting explicit settings if it's the default anyway. I.e. avoid the last line in the example below: $ chzdev --export - --active --type --all [active zfcp-lun 0.0.1941:0x500507630904d...:0x4055408f00000000] scsi_dev/queue_depth=32 Suggested-by: Peter Oberparleiter Reviewed-by: Peter Oberparleiter Signed-off-by: Steffen Maier Signed-off-by: Jan Höppner --- zdev/src/zfcp_lun.c | 1 + 1 file changed, 1 insertion(+) diff --git a/zdev/src/zfcp_lun.c b/zdev/src/zfcp_lun.c index 33bceca3..db0fa111 100644 --- a/zdev/src/zfcp_lun.c +++ b/zdev/src/zfcp_lun.c @@ -346,6 +346,7 @@ static struct attrib zfcp_lun_attr_scsi_queue_depth = { "of a SCSI device. Note that storage servers typically limit the\n" "total number of outstanding SCSI commands of all SCSI devices\n" "accessed from all attached hosts.\n", + .defval = "32", .accept = ACCEPT_ARRAY(ACCEPT_NUM_GE(1)), };