Page MenuHomeFreeBSD

ufshci: claim trackers before failing them
ClosedPublic

Authored by jaeyoon on Aug 19 2026, 5:31 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Sep 18, 12:23 AM
Unknown Object (File)
Thu, Sep 17, 9:42 AM
Unknown Object (File)
Wed, Sep 16, 11:41 PM
Unknown Object (File)
Sun, Sep 13, 3:27 PM
Unknown Object (File)
Fri, Sep 11, 1:24 AM
Unknown Object (File)
Wed, Sep 9, 9:43 PM
Unknown Object (File)
Wed, Sep 9, 11:17 AM
Unknown Object (File)
Wed, Sep 9, 4:21 AM
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