diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2013-03-20 17:06:20 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2014-05-14 18:38:51 (GMT) |
commit | 77429456e2a41ed03c002fe2d4a5b63562292345 (patch) | |
tree | 3e54459dc09bc73c2dcce2f6d4a578b7039c1bc8 /net/sctp/proc.c | |
parent | 84599ebe5d1990e79bf30741251ce496358f2058 (diff) | |
download | linux-fsl-qoriq-77429456e2a41ed03c002fe2d4a5b63562292345.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 'net/sctp/proc.c')
0 files changed, 0 insertions, 0 deletions