1. 08 Jan, 2014 1 commit
    • Johan Hovold's avatar
      USB: serial: fix race in generic write · bc845e54
      Johan Hovold authored
      commit 6f648546 upstream.
      
      Fix race in generic write implementation, which could lead to
      temporarily degraded throughput.
      
      The current generic write implementation introduced by commit
      27c7acf2 ("USB: serial: reimplement generic fifo-based writes") has
      always had this bug, although it's fairly hard to trigger and the
      consequences are not likely to be noticed.
      
      Specifically, a write() on one CPU while the completion handler is
      running on another could result in only one of the two write urbs being
      utilised to empty the remainder of the write fifo (unless there is a
      second write() that doesn't race during that time).
      Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      bc845e54
  2. 20 Dec, 2013 33 commits
  3. 12 Dec, 2013 6 commits