USB: serial: relax unthrottle memory barrier
authorJohan Hovold <johan@kernel.org>
Thu, 30 Jan 2020 10:06:58 +0000 (11:06 +0100)
committerJohan Hovold <johan@kernel.org>
Mon, 10 Feb 2020 09:37:11 +0000 (10:37 +0100)
commit32553441569482e36e65371edb84494bcec53c03
tree193e5d5e115f4b49f514feb5aa4565e692ac1b4d
parentbb6d3fb354c5ee8d6bde2d576eb7220ea09862b9
USB: serial: relax unthrottle memory barrier

Commit a8d78d9f3856 ("USB: serial: clean up throttle handling")
converted the throttle handling to use atomic bitops. This means that we
can relax the smp_mb() in unthrottle() to smp_mb__after_atomic(), which
for example is a no-op on architectures like x86 that provide fully
ordered atomics.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/generic.c