1. 25 5月, 2011 36 次提交
  2. 24 5月, 2011 2 次提交
  3. 23 5月, 2011 2 次提交
    • D
      dlm: make plock operation killable · 901025d2
      David Teigland 提交于
      Allow processes blocked on plock requests to be interrupted
      when they are killed.  This leaves the problem of cleaning
      up the lock state in userspace.  This has three parts:
      
      1. Add a flag to unlock operations sent to userspace
      indicating the file is being closed.  Userspace will
      then look for and clear any waiting plock operations that
      were abandoned by an interrupted process.
      
      2. Queue an unlock-close operation (like in 1) to clean up
      userspace from an interrupted plock request.  This is needed
      because the vfs will not send a cleanup-unlock if it sees no
      locks on the file, which it won't if the interrupted operation
      was the only one.
      
      3. Do not use replies from userspace for unlock-close operations
      because they are unnecessary (they are just cleaning up for the
      process which did not make an unlock call).  This also simplifies
      the new unlock-close generated from point 2.
      Signed-off-by: NDavid Teigland <teigland@redhat.com>
      901025d2
    • T
      hrtimers: Reorder clock bases · 68fa61c0
      Thomas Gleixner 提交于
      The ordering of the clock bases is historical due to the
      CLOCK_REALTIME and CLOCK_MONOTONIC constants. Now the hrtimer bases
      have their own enumeration due to the gap between CLOCK_MONOTONIC and
      CLOCK_BOOTTIME. So we can be more clever as most timers end up on the
      CLOCK_MONOTONIC base due to the virtue of POSIX declaring that
      relative CLOCK_REALTIME timers are not affected by time changes. In
      desktop environments this is slowly changing as applications switch to
      absolute timers, but I've observed empty CLOCK_REALTIME bases often
      enough. There is no performance penalty or overhead when
      CLOCK_REALTIME timers are active, but in case they are not we don't
      skip over a full cache line.
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Reviewed-by: NPeter Zijlstra <peterz@infradead.org>
      68fa61c0