diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2022-08-16 16:53:48 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-08-17 21:58:31 -0700 |
commit | 22d842e3efe56402c33b5e6e303bb71ce9bf9334 (patch) | |
tree | 995119d278a788424f32aee0c854562f70f221b4 /drivers/media/mmc | |
parent | 173ca86618d751bd183456c9cdbb69952ba283c8 (diff) | |
download | linux-22d842e3efe56402c33b5e6e303bb71ce9bf9334.tar.gz linux-22d842e3efe56402c33b5e6e303bb71ce9bf9334.tar.bz2 linux-22d842e3efe56402c33b5e6e303bb71ce9bf9334.zip |
net: mscc: ocelot: turn stats_lock into a spinlock
ocelot_get_stats64() currently runs unlocked and therefore may collide
with ocelot_port_update_stats() which indirectly accesses the same
counters. However, ocelot_get_stats64() runs in atomic context, and we
cannot simply take the sleepable ocelot->stats_lock mutex. We need to
convert it to an atomic spinlock first. Do that as a preparatory change.
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/media/mmc')
0 files changed, 0 insertions, 0 deletions