Page MenuHomeFreeBSD

ufshci: claim trackers before failing them
ClosedPublic

Authored by jaeyoon on Aug 19 2026, 5:31 AM.
Tags
None
Referenced Files
F175410788: D58945.id184308.diff
Sat, Oct 10, 4:22 PM
Unknown Object (File)
Thu, Oct 8, 11:17 AM
Unknown Object (File)
Tue, Oct 6, 6:48 PM
Unknown Object (File)
Mon, Oct 5, 10:50 AM
Unknown Object (File)
Mon, Oct 5, 1:14 AM
Unknown Object (File)
Sun, Oct 4, 5:35 PM
Unknown Object (File)
Sun, Oct 4, 2:26 AM
Unknown Object (File)
Thu, Oct 1, 7:18 PM
Subscribers
None

Details

Summary

ufshci_req_queue_fail() drops the queue lock to complete each
tracker. In that window the completion path could complete the
same tracker again.

Claim the slot before dropping the lock, so the completion scan
skips it. Reserved slots are left to their submit thread, which
completes them itself. The manual request completion helper
lost its only caller, so drop it.

Sponsored by: Samsung Electronics

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable