summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2013-03-20 17:06:20 (GMT)
committerScott Wood <scottwood@freescale.com>2015-02-13 22:21:06 (GMT)
commit931073c6313685f5c713201fbc0759cd0cdc1397 (patch)
tree8eb534228bc430f1e78d2fa6a5118d0f8ca826ed /crypto
parent74ec05f9505c5e05038d4de5b1d8cc714574ce07 (diff)
downloadlinux-fsl-qoriq-931073c6313685f5c713201fbc0759cd0cdc1397.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 'crypto')
0 files changed, 0 insertions, 0 deletions