NFS: Use wait_on_atomic_t() for unlock after readahead
The use of wait_on_atomic_t() for waiting on I/O to complete before unlocking allows us to git rid of the NFS_IO_INPROGRESS flag, and thus the nfs_iocounter's flags member, and finally the nfs_iocounter altogether. The count of I/O is moved to the lock context, and the counter increment/decrement functions become simple enough to open-code. Signed-off-by:Benjamin Coddington <bcodding@redhat.com> [Trond: Fix up conflict with existing function nfs_wait_atomic_killable()] Signed-off-by:
Trond Myklebust <trond.myklebust@primarydata.com>
Showing
- fs/nfs/file.c 1 addition, 1 deletionfs/nfs/file.c
- fs/nfs/inode.c 12 additions, 6 deletionsfs/nfs/inode.c
- fs/nfs/internal.h 2 additions, 7 deletionsfs/nfs/internal.h
- fs/nfs/pagelist.c 7 additions, 41 deletionsfs/nfs/pagelist.c
- fs/nfs/write.c 0 additions, 8 deletionsfs/nfs/write.c
- include/linux/nfs_fs.h 1 addition, 7 deletionsinclude/linux/nfs_fs.h
Loading
Please register or sign in to comment