• Michael E. Brown's avatar
    [PATCH] sysfs module unload race fix for bin_attributes · 78fdb0c4
    Michael E. Brown authored
     -  Add module locking to sysfs bin_attribute files. Update all in-tree
        users to set module owner.
    
    	Compile tested. booted. stress tests pass:
    
    while true; do modprobe mymod; rmmod mymod; done &
    while true; do hexdump -C /sys/path/to/sysfs/binary/file; done
    78fdb0c4
eeprom.c 7.98 KB