Bring up/down network devices with lapbether causes scheduling while
atomic (if preempt enabled).
The calls to rcu_read_lock are unnecessary since lapb_device_event
is called from notifier with the rtnetlink semaphore held, it is
already protected from the labp_devices list changing.
/*
* Handle device status changes.
+ *
+ * Called from notifier with RTNL held.
*/
static int lapbeth_device_event(struct notifier_block *this,
unsigned long event, void *ptr)
if (!dev_is_ethdev(dev))
return NOTIFY_DONE;
- rcu_read_lock();
switch (event) {
case NETDEV_UP:
/* New ethernet device -> new LAPB interface */
lapbeth_free_device(lapbeth);
break;
}
- rcu_read_unlock();
return NOTIFY_DONE;
}