diff mbox series

libata: specify timeout value when internal command times out.

Message ID 1606156964-13154-1-git-send-email-dmilburn@redhat.com
State New
Headers show
Series libata: specify timeout value when internal command times out. | expand

Commit Message

David Milburn Nov. 23, 2020, 6:42 p.m. UTC
Specifying timeout value may help in troubleshooting failures.

Signed-off-by: David Milburn <dmilburn@redhat.com>
---
 drivers/ata/libata-core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 61c762961ca8..8f1ba6208e5c 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -1600,8 +1600,8 @@  unsigned ata_exec_internal_sg(struct ata_device *dev,
 				ata_qc_complete(qc);
 
 			if (ata_msg_warn(ap))
-				ata_dev_warn(dev, "qc timeout (cmd 0x%x)\n",
-					     command);
+				ata_dev_warn(dev, "qc timeout after %lu msecs (cmd 0x%x)\n",
+					     timeout, command);
 		}
 
 		spin_unlock_irqrestore(ap->lock, flags);