Skip to contentSkip to conversation

libata: specify timeout value when internal command times out.

PATCH New David Milburn 1 participant 1 message Nov 23, 2020 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libata: specify timeout value when internal command times out.

Specifying timeout value may help in troubleshooting failures.

---
 drivers/ata/libata-core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/ata/libata-core.c +2 -2
index 61c762961ca8..8f1ba6208e5c 100644
@@ -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);
Signature · 1 line
2.18.1