1. 04 Mar, 2011 1 commit
    • Alexandre Courbot's avatar
      serial: sh-sci: fix deadlock when resuming from S3 sleep · 36003386
      Alexandre Courbot authored
      S3 sleep invokes the shutdown callback of the sh-sci driver, which
      suspends the clocks until they are reactivated by a call to startup.
      However, before the latter is invoked, sci_set_termios may be called on
      the port by uart_resume_port. In such cases it will endlessly wait for
      the TEND bit to raise, which will never happen since the clocks are
      disabled.
      
      This patch ensures that clocks are enabled when ports registers are
      manipulated within sci_set_termios.
      Signed-off-by: default avatarAlexandre Courbot <gnurou@gmail.com>
      Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
      36003386
  2. 15 Feb, 2011 5 commits
  3. 14 Feb, 2011 1 commit
  4. 13 Feb, 2011 6 commits
  5. 12 Feb, 2011 25 commits
  6. 11 Feb, 2011 2 commits
    • Linus Torvalds's avatar
      Fix possible filp_cachep memory corruption · 2dab5974
      Linus Torvalds authored
      In commit 31e6b01f ("fs: rcu-walk for path lookup") we started doing
      path lookup using RCU, which then falls back to a careful non-RCU lookup
      in case of problems (LOOKUP_REVAL).  So do_filp_open() has this "re-do
      the lookup carefully" looping case.
      
      However, that means that we must not release the open-intent file data
      if we are going to loop around and use it once more!
      
      Fix this by moving the release of the open-intent data to the function
      that allocates it (do_filp_open() itself) rather than the helper
      functions that can get called multiple times (finish_open() and
      do_last()).  This makes the logic for the lifetime of that field much
      more obvious, and avoids the possible double free.
      Reported-by: default avatarJ. R. Okajima <hooanon05@yahoo.co.jp>
      Acked-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      Cc: Nick Piggin <npiggin@kernel.dk>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      2dab5974
    • David Teigland's avatar
      dlm: use single thread workqueues · 6b155c8f
      David Teigland authored
      The recent commit to use cmwq for send and recv threads
      dcce240e introduced problems,
      apparently due to multiple workqueue threads.  Single threads
      make the problems go away, so return to that until we fully
      understand the concurrency issues with multiple threads.
      Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
      6b155c8f