diff options
| author | Lu Baolu <[email protected]> | 2017-10-05 11:21:44 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2017-10-05 11:01:58 +0200 |
| commit | 089ed4904e948f93a82ebf62b068ae55aec852ab (patch) | |
| tree | ea84e9446c63a870bc34b332fceeb87d5c095759 /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | dcabc76fa9361186e6b88c30a68db8fa9d5b4a1c (diff) | |
usb: xhci: Remove xhci->mutex from xhci_alloc_dev()
xhci->mutex was added in xhci_alloc_dev() to protect two race sources
(xhci->slot_id and xhci->addr_dev) by commit a00918d0521d ("usb: host:
xhci: add mutex for non-thread-safe data").
While xhci->slot_id has been discarded in commit c2d3d49bba08 ("usb:
xhci: move slot_id from xhci_hcd to xhci_command structure"), and
xhci->addr_dev has been removed in commit 87e44f2aac8d ("usb: xhci:
remove the use of xhci->addr_dev"), it's now safe to remove the use of
xhci->mutex in xhci_alloc_dev().
Link: https://marc.info/?l=linux-usb&m=150306294725821&w=2
Suggested-by: Mathias Nyman <[email protected]>
Signed-off-by: Lu Baolu <[email protected]>
Signed-off-by: Mathias Nyman <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions