Re: NETDEV_CHANGE events when __LINK_STATE_NOCARRIER is modified
David S. Miller (davem@redhat.com)
Tue, 15 May 2001 04:15:11 -0700 (PDT)
Andrew Morton writes:
> > Again, BKL has nothing to do with this (and ioctl does not hold it)
>
> asmlinkage long sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg)
> {
> struct file * filp;
> unsigned int flag;
> int on, error = -EBADF;
>
> filp = fget(fd);
> if (!filp)
> goto out;
> error = 0;
> lock_kernel();
>
> The CPU running ifconfig spins here.
Alexey's brain is going through net/socket.c:sock_ioctl() :-)
There we drop the kernel lock...
Later,
David S. Miller
davem@redhat.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/