[NET]: split dev_ifsioc() according to locking
commit14e3e07979c4384e45e751882292d3b38477e855
authorJeff Garzik <jgarzik@redhat.com>
Mon, 8 Oct 2007 07:06:32 +0000 (8 00:06 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:54:49 +0000 (10 16:54 -0700)
treea99004a45287f943ffa69428ceb0d516f1bc9458
parentcfcabdcc2d5a810208e5bb3974121b7ed60119aa
[NET]: split dev_ifsioc() according to locking

This always bugged me: dev_ioctl() called dev_ifsioc() either inside
read_lock(dev_base_lock) or rtnl_lock(), depending on the ioctl being
executed.

This change moves the ioctls executed inside dev_base_lock to a new
function, dev_ifsioc_locked().  Now the locking context is completely
clear to the reader.

Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c