diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2013-03-20 17:06:20 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2014-04-10 00:20:04 (GMT) |
commit | f20e74a895887426d75e460b7014f8c1f3874ebe (patch) | |
tree | 7aa031d16924b27252847e77e9c126997fd5c207 /lib/lcm.c | |
parent | bf76213a581900071fd980e8cad94c46145d6f67 (diff) | |
download | linux-fsl-qoriq-f20e74a895887426d75e460b7014f8c1f3874ebe.tar.xz |
net: Add a mutex around devnet_rename_seq
On RT write_seqcount_begin() disables preemption and device_rename()
allocates memory with GFP_KERNEL and grabs later the sysfs_mutex
mutex. Serialize with a mutex and add use the non preemption disabling
__write_seqcount_begin().
To avoid writer starvation, let the reader grab the mutex and release
it when it detects a writer in progress. This keeps the normal case
(no reader on the fly) fast.
[ tglx: Instead of replacing the seqcount by a mutex, add the mutex ]
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'lib/lcm.c')
0 files changed, 0 insertions, 0 deletions