Re: NETDEV_CHANGE events when __LINK_STATE_NOCARRIER is modified

From: David S. Miller (davem@redhat.com)
Date: Tue May 15 2001 - 06:15:11 EST


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/



This archive was generated by hypermail 2b29 : Tue May 15 2001 - 21:00:41 EST