diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2013-03-20 17:06:20 (GMT) |
---|---|---|
committer | Emil Medve <Emilian.Medve@Freescale.com> | 2013-04-30 08:17:30 (GMT) |
commit | 438cb0532b4377f1a598f4aaea0d700243a07fe3 (patch) | |
tree | 04ec21dfb55528539784e5ac399d4b2a4d5d3524 /include | |
parent | b49feb1c4ad0696073dc3c46e346b7c2a72499ee (diff) | |
download | linux-fsl-qoriq-438cb0532b4377f1a598f4aaea0d700243a07fe3.tar.xz |
net: make devnet_rename_seq a mutex
On RT write_seqcount_begin() disables preemption and device_rename()
allocates memory with GFP_KERNEL and grabs later the sysfs_mutex mutex.
Since I don't see a reason why this can't be a mutex, make it one. We
probably don't have that much reads at the same time in the hot path.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netdevice.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index b705426..041bc5b 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -1579,7 +1579,7 @@ extern int call_netdevice_notifiers(unsigned long val, struct net_device *dev); extern rwlock_t dev_base_lock; /* Device list lock */ -extern seqcount_t devnet_rename_seq; /* Device rename seq */ +extern struct mutex devnet_rename_mutex; #define for_each_netdev(net, d) \ |