• Matthew Wilcox's avatar
    [PATCH] sleeping file locks · 48b3fb54
    Matthew Wilcox authored
     - Add FL_SLEEP flag to indicate we intend to sleep and therefore desire
       to be placed on the block list.  Use it for POSIX & flock locks.
     - Remove locks_block_on.
     - Change posix_unblock_lock to eliminate a race that will appear once we
       don't use the BKL any more.
     - Update the comment for locks_same_owner() and rename it to
       posix_same_owner().
     - Change locks_mandatory_area() to allocate its lock on the stack and
       call posix_lock_file() instead of repeating that logic.
     - Rename the "caller" parameter to posix_lock_file() to "request"
       to better show that this is not to be inserted directly.
     - Redo some of the proc code a little.  Stop exposing kernel addresses
       to userspace (whoever thought _that_ was a good idea?!) and show how
       we should be printing the device name.  The last part is ifdeffed
       out to avoid breaking lslk.
     - Remove FL_BROKEN.  And there was much rejoicing.
    48b3fb54
svcsubs.c 6.99 KB