1. 09 May, 2012 1 commit
    • Trond Myklebust's avatar
      NFS: Prevent a deadlock in the new writeback code · 3aff4ebb
      Trond Myklebust authored
      We have to unlock the nfs_page before we call nfs_end_page_writeback
      to avoid races with functions that expect the page to be unlocked
      when PG_locked and PG_writeback are not set.
      The problem is that nfs_unlock_request also releases the nfs_page,
      causing a deadlock if the release of the nfs_open_context
      triggers an iput() while the PG_writeback flag is still set...
      
      The solution is to separate the unlocking and release of the nfs_page,
      so that we can do the former before nfs_end_page_writeback and the
      latter after.
      Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
      Cc: Fred Isaman <iisaman@netapp.com>
      3aff4ebb
  2. 08 May, 2012 3 commits
  3. 04 May, 2012 2 commits
    • Trond Myklebust's avatar
      NFS: Fix sparse warnings · 1385b811
      Trond Myklebust authored
      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: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
      Cc: Fred Isaman <iisaman@netapp.com>
      Cc: Boaz Harrosh <bharrosh@panasas.com>
      1385b811
    • Trond Myklebust's avatar
      NFS: Fix O_DIRECT compile warnings · bf5fc402
      Trond Myklebust authored
      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: default avatarStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
      Cc: Fred Isaman <iisaman@netapp.com>
      Cc: Stephen Rothwell <sfr@canb.auug.org.au>
      bf5fc402
  4. 01 May, 2012 19 commits
  5. 30 Apr, 2012 8 commits
  6. 27 Apr, 2012 7 commits