• Alessandro Rubini's avatar
    userspace/hal: bugfix: mark a port in-use after error checking · 5628e3cc
    Alessandro Rubini authored
    bug introduced in c45f9161.
    
    The new check for dotconfig params was added after setting
    port->in_use to 1.  Thus, at each loop, the hal was calling
    
       ioctl(6, SIOCGIFFLAGS, {ifr_name="", ???}) = -1 ENODEV (No such device)
    
    but that ENODEV was after a call to modprobe for the "" interface.
    Actually this command:
    
        /sbin/modprobe -q -- netdev-
    
    By means of /sbin/modprobe being the string in /proc/sys/kernel/modprobe .
    But modprobe is busybox, so over NFS we had a zillion stat() accesses
    for ld.so, uclibc.so and busybox.
    
    Thanks Adam for noting the NFS traffic increase at that commit.
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    5628e3cc
Name
Last commit
Last update
binaries Loading commit data...
build Loading commit data...
configs Loading commit data...
doc Loading commit data...
hwinfo-sdb Loading commit data...
kernel Loading commit data...
patches Loading commit data...
robustness/coding Loading commit data...
scripts Loading commit data...
usb-loader Loading commit data...
userspace Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
COPYING Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
Makefile.kconfig Loading commit data...
README Loading commit data...