qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/3] scsi: make io_timeout configurable


From: Paolo Bonzini
Subject: Re: [PATCH 2/3] scsi: make io_timeout configurable
Date: Thu, 23 Sep 2021 09:19:24 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

On 22/09/21 17:47, Philippe Mathieu-Daudé wrote:


@@ -637,7 +639,7 @@ static int get_stream_blocksize(BlockBackend *blk)
      cmd[0] = MODE_SENSE;
      cmd[4] = sizeof(buf);
-    ret = scsi_SG_IO_FROM_DEV(blk, cmd, sizeof(cmd), buf, sizeof(buf));
+    ret = scsi_SG_IO_FROM_DEV(blk, cmd, sizeof(cmd), buf, sizeof(buf), 6);

Why is this timeout hardcoded? Due to the /* XXX */ comment?

This command is only invoked at startup and involves no I/O, so 6 seconds should be plenty.

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]