Page MenuHomeFreeBSD

ufshci: release the CCB after sending a start stop unit command
ClosedPublic

Authored by jaeyoon on Aug 5 2026, 8:12 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 7, 9:55 AM
Unknown Object (File)
Tue, Oct 6, 10:02 PM
Unknown Object (File)
Thu, Oct 1, 10:03 PM
Unknown Object (File)
Thu, Oct 1, 7:21 PM
Unknown Object (File)
Tue, Sep 29, 2:01 AM
Unknown Object (File)
Sat, Sep 26, 3:24 PM
Unknown Object (File)
Mon, Sep 21, 2:35 PM
Unknown Object (File)
Mon, Sep 21, 11:00 AM
Subscribers
None

Details

Summary

ufshci_sim_send_ssu() got a CCB from cam_periph_getccb() but never
returned it. Each call leaked the CCB and one slot of the device's
CCB allocation budget. When the budget runs out, the next
cam_periph_getccb() waits forever and the suspend path hangs.

Release the CCB while the periph lock is still held, as the other CAM
periph drivers do.

Sponsored by: Samsung Electronics

Diff Detail

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