1. 04 10月, 2016 1 次提交
    • A
      new helper: add_to_pipe() · 79fddc4e
      Al Viro 提交于
      single-buffer analogue of splice_to_pipe(); vmsplice_to_pipe() switched
      to that, leaving splice_to_pipe() only for ->splice_read() instances
      (and that only until they are converted as well).
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      79fddc4e
  2. 12 6月, 2014 1 次提交
  3. 28 1月, 2014 1 次提交
  4. 20 6月, 2013 1 次提交
  5. 14 6月, 2012 1 次提交
    • E
      splice: fix racy pipe->buffers uses · 047fe360
      Eric Dumazet 提交于
      Dave Jones reported a kernel BUG at mm/slub.c:3474! triggered
      by splice_shrink_spd() called from vmsplice_to_pipe()
      
      commit 35f3d14d (pipe: add support for shrinking and growing pipes)
      added capability to adjust pipe->buffers.
      
      Problem is some paths don't hold pipe mutex and assume pipe->buffers
      doesn't change for their duration.
      
      Fix this by adding nr_pages_max field in struct splice_pipe_desc, and
      use it in place of pipe->buffers where appropriate.
      
      splice_shrink_spd() loses its struct pipe_inode_info argument.
      Reported-by: NDave Jones <davej@redhat.com>
      Signed-off-by: NEric Dumazet <edumazet@google.com>
      Cc: Jens Axboe <axboe@kernel.dk>
      Cc: Alexander Viro <viro@zeniv.linux.org.uk>
      Cc: Tom Herbert <therbert@google.com>
      Cc: stable <stable@vger.kernel.org> # 2.6.35
      Tested-by: NDave Jones <davej@redhat.com>
      Signed-off-by: NJens Axboe <axboe@kernel.dk>
      047fe360
  6. 26 7月, 2011 1 次提交
  7. 22 5月, 2010 1 次提交
  8. 12 5月, 2009 1 次提交
  9. 15 4月, 2009 2 次提交
  10. 29 1月, 2008 1 次提交
  11. 10 7月, 2007 2 次提交