1. 27 Oct, 2005 3 commits
    • Cliff Wickman's avatar
      [IA64] ptrace - find memory sharers on children list · 4ac0068f
      Cliff Wickman authored
      In arch/ia64/kernel/ptrace.c there is a test for a peek or poke of a
      register image (in register backing storage).
      The test can be unnecessarily long (and occurs while holding the tasklist_lock).
      Especially long on a large system with thousands of active tasks.
      
      The ptrace caller (presumably a debugger) specifies the pid of
      its target and an address to peek or poke.  But the debugger could be
      attached to several tasks.
      The idea of find_thread_for_addr() is to find whether the target address
      is in the RBS for any of those tasks.
      
      Currently it searches the thread-list of the target pid.  If that search
      does not find a match, and the shared mm-struct's user count indicates
      that there are other tasks sharing this address space (a rare occurrence),
      a search is made of all the tasks in the system.
      
      Another approach can drastically shorten this procedure.
      It depends upon the fact that in order to peek or poke from/to any task,
      the debugger must first attach to that task.  And when it does, the
      attached task is made a child of the debugger (is chained to its children list).
      
      Therefore we can search just the debugger's children list.
      Signed-off-by: default avatarCliff Wickman <cpw@sgi.com>
      Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
      4ac0068f
    • Roland McGrath's avatar
      [PATCH] Yet more posix-cpu-timer fixes · 72ab373a
      Roland McGrath authored
      This just makes sure that a thread's expiry times can't get reset after
      it clears them in do_exit.
      
      This is what allowed us to re-introduce the stricter BUG_ON() check in
      a362f463.
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      72ab373a
    • Linus Torvalds's avatar
      Revert "remove false BUG_ON() from run_posix_cpu_timers()" · a362f463
      Linus Torvalds authored
      This reverts commit 3de463c7.
      
      Roland has another patch that allows us to leave the BUG_ON() in place
      by just making sure that the condition it tests for really is always
      true.
      
      That goes in next.
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      a362f463
  2. 26 Oct, 2005 14 commits
  3. 25 Oct, 2005 5 commits
  4. 24 Oct, 2005 11 commits
  5. 23 Oct, 2005 7 commits