Skip to content
  • Jonathan Corbet's avatar
    Add cycle_kernel_lock() · 0b280676
    Jonathan Corbet authored
    
    
    A number of driver functions are so obviously trivial that they do not need
    the big kernel lock - at least not overtly.  It turns out that the
    acquisition of the BKL in driver open() functions can perform a sort of
    poor-hacker's serialization function, delaying the open operation until the
    driver is certain to have completed its initialization.  Add a simple
    cycle_kernel_lock() function for these cases to make it clear that there is
    no need to *hold* the BKL, just to be sure that we can acquire it.
    
    Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
    0b280676