NFS/pNFS: Fix up pNFS write reschedule layering violations and bugs
The flexfiles layout in particular, seems to want to poke around in the
O_DIRECT flags when retransmitting.
This patch sets up an interface to allow it to call back into O_DIRECT
to handle retransmission correctly. It also fixes a potential bug whereby
we could change the behaviour of O_DIRECT if an error is already pending.
Signed-off-by:
Trond Myklebust <trond.myklebust@primarydata.com>
Showing
- fs/nfs/direct.c 15 additions, 6 deletionsfs/nfs/direct.c
- fs/nfs/flexfilelayout/flexfilelayout.c 1 addition, 12 deletionsfs/nfs/flexfilelayout/flexfilelayout.c
- fs/nfs/internal.h 0 additions, 1 deletionfs/nfs/internal.h
- fs/nfs/write.c 6 additions, 0 deletionsfs/nfs/write.c
- include/linux/nfs_xdr.h 1 addition, 0 deletionsinclude/linux/nfs_xdr.h
Loading
Please register or sign in to comment