Page MenuHomeFreeBSD

usb: Add missing mtx lock and unlock in pushing dma queue
ClosedPublic

Authored by aokblast on Thu, May 28, 9:08 AM.
Tags
Referenced Files
F160307064: D57293.id178797.diff
Tue, Jun 23, 2:43 AM
Unknown Object (File)
Sat, Jun 20, 6:13 PM
Unknown Object (File)
Sat, Jun 20, 1:20 PM
Unknown Object (File)
Mon, Jun 8, 11:31 AM
Unknown Object (File)
Mon, Jun 8, 11:21 AM
Unknown Object (File)
Mon, Jun 8, 3:04 AM
Unknown Object (File)
Mon, Jun 8, 3:01 AM
Unknown Object (File)
Sat, Jun 6, 9:06 PM
Subscribers

Details

Summary

Accessing usb_xfer_queue requires bus lock, we added this missing lock in here to prevent racing issue.

Diff Detail

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

Event Timeline

nice catch! Why's this not panicing though? I thought I saw a lock assertion in usb_command_wrapper() ?

This revision is now accepted and ready to land.Thu, May 28, 2:29 PM

nice catch! Why's this not panicing though? I thought I saw a lock assertion in usb_command_wrapper() ?

We don't have that now. This is found when I am trying to do so (do lock assertion in usb_command_wrapper).