1. 14 1月, 2014 1 次提交
  2. 06 1月, 2014 1 次提交
  3. 25 10月, 2013 1 次提交
  4. 30 7月, 2013 1 次提交
    • K
      aio: Kill aio_rw_vect_retry() · 73a7075e
      Kent Overstreet 提交于
      This code doesn't serve any purpose anymore, since the aio retry
      infrastructure has been removed.
      
      This change should be safe because aio_read/write are also used for
      synchronous IO, and called from do_sync_read()/do_sync_write() - and
      there's no looping done in the sync case (the read and write syscalls).
      Signed-off-by: NKent Overstreet <koverstreet@google.com>
      Cc: Zach Brown <zab@redhat.com>
      Cc: Felipe Balbi <balbi@ti.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Mark Fasheh <mfasheh@suse.com>
      Cc: Joel Becker <jlbec@evilplan.org>
      Cc: Rusty Russell <rusty@rustcorp.com.au>
      Cc: Jens Axboe <axboe@kernel.dk>
      Cc: Asai Thambi S P <asamymuthupa@micron.com>
      Cc: Selvan Mani <smani@micron.com>
      Cc: Sam Bradshaw <sbradshaw@micron.com>
      Cc: Jeff Moyer <jmoyer@redhat.com>
      Cc: Al Viro <viro@zeniv.linux.org.uk>
      Cc: Benjamin LaHaise <bcrl@kvack.org>
      Signed-off-by: NBenjamin LaHaise <bcrl@kvack.org>
      73a7075e
  5. 13 12月, 2012 2 次提交
    • J
      nfs: fix page dirtying in NFS DIO read codepath · be7e9858
      Jeff Layton 提交于
      The NFS DIO code will dirty pages that catch read responses in order to
      handle the case where someone is doing DIO reads into an mmapped buffer.
      The existing code doesn't really do the right thing though since it
      doesn't take into account the case where we might be attempting to read
      past the EOF.
      
      Fix the logic in that code to only dirty pages that ended up receiving
      data from the read. Note too that it really doesn't matter if
      NFS_IOHDR_ERROR is set or not. All that matters is if the page was
      altered by the read.
      
      Cc: Fred Isaman <iisaman@netapp.com>
      Signed-off-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      be7e9858
    • J
      nfs: don't zero out the rest of the page if we hit the EOF on a DIO READ · 67fad106
      Jeff Layton 提交于
      Eryu provided a test program that would segfault when attempting to read
      past the EOF on file that was opened O_DIRECT. The buffer given to the
      read() call was on the stack, and when he attempted to read past it it
      would scribble over the rest of the stack page.
      
      If we hit the end of the file on a DIO READ request, then we don't want
      to zero out the rest of the buffer. These aren't pagecache pages after
      all, and there's no guarantee that the buffers that were passed in
      represent entire pages.
      
      Cc: <stable@vger.kernel.org> # v3.5+
      Cc: Fred Isaman <iisaman@netapp.com>
      Reported-by: NEryu Guan <eguan@redhat.com>
      Signed-off-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      67fad106
  6. 09 10月, 2012 2 次提交
  7. 02 10月, 2012 1 次提交
  8. 29 9月, 2012 1 次提交
  9. 01 8月, 2012 1 次提交
    • M
      nfs: enable swap on NFS · a564b8f0
      Mel Gorman 提交于
      Implement the new swapfile a_ops for NFS and hook up ->direct_IO.  This
      will set the NFS socket to SOCK_MEMALLOC and run socket reconnect under
      PF_MEMALLOC as well as reset SOCK_MEMALLOC before engaging the protocol
      ->connect() method.
      
      PF_MEMALLOC should allow the allocation of struct socket and related
      objects and the early (re)setting of SOCK_MEMALLOC should allow us to
      receive the packets required for the TCP connection buildup.
      
      [jlayton@redhat.com: Restore PF_MEMALLOC task flags in all cases]
      [dfeng@redhat.com: Fix handling of multiple swap files]
      [a.p.zijlstra@chello.nl: Original patch]
      Signed-off-by: NMel Gorman <mgorman@suse.de>
      Acked-by: NRik van Riel <riel@redhat.com>
      Cc: Christoph Hellwig <hch@infradead.org>
      Cc: David S. Miller <davem@davemloft.net>
      Cc: Eric B Munson <emunson@mgebm.net>
      Cc: Eric Paris <eparis@redhat.com>
      Cc: James Morris <jmorris@namei.org>
      Cc: Mel Gorman <mgorman@suse.de>
      Cc: Mike Christie <michaelc@cs.wisc.edu>
      Cc: Neil Brown <neilb@suse.de>
      Cc: Sebastian Andrzej Siewior <sebastian@breakpoint.cc>
      Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
      Cc: Xiaotian Feng <dfeng@redhat.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      a564b8f0
  10. 31 7月, 2012 4 次提交
  11. 08 7月, 2012 1 次提交
  12. 20 6月, 2012 1 次提交
  13. 10 6月, 2012 1 次提交
    • F
      NFS: fix directio refcount bug on commit · 906369e4
      Fred Isaman 提交于
      This reverts a hunk from commit 04277086
      "NFS: Clean up - Simplify reference counting in fs/nfs/direct.c"
      
      The cleanups in that patch affect the write path, but by the time
      processing hits commit the removed reference has been added back by
      nfs_scan_commit_list().  Without this reversion, any page that is
      sent to commit holds on to an unbalanced reference that is never
      freed.  The immediate effect is an imbalance over the wire between
      OPENs and CLOSEs.
      Signed-off-by: NFred Isaman <iisaman@netapp.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      906369e4
  14. 06 6月, 2012 1 次提交
    • T
      NFS: Fix a commit bug · 9bce008b
      Trond Myklebust 提交于
      The new commit code fails to copy the verifier into the wb_verf field
      of _all_ the nfs_page structures; it only copies it into the first entry.
      The consequence is that most requests end up failing to match in
      nfs_commit_release.
      
      Fix is to copy the verifier into the req->wb_verf field in
      nfs_write_completion.
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      Cc: Fred Isaman <iisaman@netapp.com>
      9bce008b
  15. 01 6月, 2012 1 次提交
  16. 25 5月, 2012 1 次提交
  17. 10 5月, 2012 3 次提交
  18. 05 5月, 2012 2 次提交
    • T
      NFS: Fix sparse warnings · 1385b811
      Trond Myklebust 提交于
      Fix the following sparse warnings:
      
      fs/nfs/direct.c:221:6: warning: symbol 'nfs_direct_readpage_release' was
      not declared. Should it be static?
      fs/nfs/read.c:38:43: warning: non-ANSI function declaration of function
      'nfs_readhdr_alloc'
      fs/nfs/objlayout/objio_osd.c:214:5: warning: symbol '__alloc_objio_seg'
      was not declared. Should it be static?
      Reported-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      Cc: Fred Isaman <iisaman@netapp.com>
      Cc: Boaz Harrosh <bharrosh@panasas.com>
      1385b811
    • T
      NFS: Fix O_DIRECT compile warnings · bf5fc402
      Trond Myklebust 提交于
      Fix the following compile warnings:
      fs/nfs/direct.c: In function 'nfs_direct_read_schedule_segment':
      fs/nfs/direct.c:325:11: warning: comparison of distinct pointer types
      lacks a cast [enabled by default]
      fs/nfs/direct.c:325:11: warning: comparison of distinct pointer types
      lacks a cast [enabled by default]
      fs/nfs/direct.c:325:11: warning: comparison of distinct pointer types
      lacks a cast [enabled by default]
      fs/nfs/direct.c:352:27: warning: comparison of distinct pointer types
      lacks a cast [enabled by default]
      fs/nfs/direct.c: In function 'nfs_direct_write_schedule_segment':
      fs/nfs/direct.c:622:11: warning: comparison of distinct pointer types
      lacks a cast [enabled by default]
      fs/nfs/direct.c:622:11: warning: comparison of distinct pointer types
      lacks a cast [enabled by default]
      fs/nfs/direct.c:622:11: warning: comparison of distinct pointer types
      lacks a cast [enabled by default]
      fs/nfs/direct.c:650:27: warning: comparison of distinct pointer types
      lacks a cast [enabled by default]
      Reported-by: NStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      Cc: Fred Isaman <iisaman@netapp.com>
      Cc: Stephen Rothwell <sfr@canb.auug.org.au>
      bf5fc402
  19. 02 5月, 2012 1 次提交
  20. 01 5月, 2012 5 次提交
  21. 28 4月, 2012 8 次提交