1. 11 May, 2007 2 commits
    • Russell King's avatar
      [ARM] ecard: add helper function for setting ecard irq ops · c7b87f3d
      Russell King authored
      Rather than having every driver fiddle about setting its private
      IRQ operations and data, provide a helper function to contain
      this functionality in one place.
      
      Arrange to remove the driver-private IRQ operations and data when
      the device is removed from the driver, and remove the driver
      private code to do this.
      
      This fixes potential problems caused by drivers forgetting to
      remove these hooks.
      Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      c7b87f3d
    • J. Bruce Fields's avatar
      locks: fix F_GETLK regression (failure to find conflicts) · 129a84de
      J. Bruce Fields authored
      In 9d6a8c5c we changed posix_test_lock
      to modify its single file_lock argument instead of taking separate input
      and output arguments.  This makes it no longer safe to set the output
      lock's fl_type to F_UNLCK before looking for a conflict, since that
      means searching for a conflict against a lock with type F_UNLCK.
      
      This fixes a regression which causes F_GETLK to incorrectly report no
      conflict on most filesystems (including any filesystem that doesn't do
      its own locking).
      
      Also fix posix_lock_to_flock() to copy the lock type.  This isn't
      strictly necessary, since the caller already does this; but it seems
      less likely to cause confusion in the future.
      
      Thanks to Doug Chapman for the bug report.
      Signed-off-by: default avatar"J. Bruce Fields" <bfields@citi.umich.edu>
      Acked-by: default avatarDoug Chapman <doug.chapman@hp.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      129a84de
  2. 10 May, 2007 38 commits