Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F178221578
D62312.1796274783.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
869 B
Referenced Files
None
Subscribers
None
D62312.1796274783.diff
View Options
diff --git a/sys/dev/ufshci/ufshci_req_queue.c b/sys/dev/ufshci/ufshci_req_queue.c
--- a/sys/dev/ufshci/ufshci_req_queue.c
+++ b/sys/dev/ufshci/ufshci_req_queue.c
@@ -589,6 +589,8 @@
* Step 5. All previous commands were timeout.
* Recovery failed, reset the host controller.
*/
+ mtx_assert(&hwq->recovery_lock, MA_OWNED);
+
ufshci_printf(ctrlr,
"Recovery step 5: Resetting controller due to a timeout.\n");
hwq->recovery_state = RECOVERY_WAITING;
@@ -644,8 +646,13 @@
return;
}
- /* Abort Task failed. Perform recovery steps 2-5 */
+ /*
+ * Abort Task failed. Perform recovery steps 2-5 under the
+ * recovery lock, as the watchdog does.
+ */
+ mtx_lock(&tr->hwq->recovery_lock);
ufshci_req_queue_timeout_recovery(tr->hwq->ctrlr, tr->hwq);
+ mtx_unlock(&tr->hwq->recovery_lock);
} else {
mtx_unlock(&tr->hwq->qlock);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 3, 5:13 AM (23 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42164991
Default Alt Text
D62312.1796274783.diff (869 B)
Attached To
Mode
D62312: ufshci: take the recovery lock when an abort fails
Attached
Detach File
Event Timeline