diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-05 16:25:45 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-03-05 16:25:45 -0500 |
| commit | cc7889ff5ee7a1c1a2b5073c53db5ad9b76f14e2 (patch) | |
| tree | 647e11872abe7c20c0145de9adbb60f15085dad0 /include/linux/sunrpc | |
| parent | b13d3c6e8ab6ac53e8c1858a9c837cb6ba3bbef0 (diff) | |
| parent | 3fa04ecd72780da31ba8b329e148179bc24a9c7d (diff) | |
Merge branch 'nfs-for-2.6.34' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6
* 'nfs-for-2.6.34' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6: (44 commits)
NFS: Remove requirement for inode->i_mutex from nfs_invalidate_mapping
NFS: Clean up nfs_sync_mapping
NFS: Simplify nfs_wb_page()
NFS: Replace __nfs_write_mapping with sync_inode()
NFS: Simplify nfs_wb_page_cancel()
NFS: Ensure inode is always marked I_DIRTY_DATASYNC, if it has unstable pages
NFS: Run COMMIT as an asynchronous RPC call when wbc->for_background is set
NFS: Reduce the number of unnecessary COMMIT calls
NFS: Add a count of the number of unstable writes carried by an inode
NFS: Cleanup - move nfs_write_inode() into fs/nfs/write.c
nfs41 fix NFS4ERR_CLID_INUSE for exchange id
NFS: Fix an allocation-under-spinlock bug
SUNRPC: Handle EINVAL error returns from the TCP connect operation
NFSv4.1: Various fixes to the sequence flag error handling
nfs4: renewd renew operations should take/put a client reference
nfs41: renewd sequence operations should take/put client reference
nfs: prevent backlogging of renewd requests
nfs: kill renewd before clearing client minor version
NFS: Make close(2) asynchronous when closing NFS O_DIRECT files
NFS: Improve NFS iostat byte count accuracy for writes
...
Diffstat (limited to 'include/linux/sunrpc')
| -rw-r--r-- | include/linux/sunrpc/bc_xprt.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/sunrpc/bc_xprt.h b/include/linux/sunrpc/bc_xprt.h index 6508f0dc0eff..d7152b451e21 100644 --- a/include/linux/sunrpc/bc_xprt.h +++ b/include/linux/sunrpc/bc_xprt.h | |||
| @@ -38,12 +38,27 @@ int xprt_setup_backchannel(struct rpc_xprt *, unsigned int min_reqs); | |||
| 38 | void xprt_destroy_backchannel(struct rpc_xprt *, int max_reqs); | 38 | void xprt_destroy_backchannel(struct rpc_xprt *, int max_reqs); |
| 39 | void bc_release_request(struct rpc_task *); | 39 | void bc_release_request(struct rpc_task *); |
| 40 | int bc_send(struct rpc_rqst *req); | 40 | int bc_send(struct rpc_rqst *req); |
| 41 | |||
| 42 | /* | ||
| 43 | * Determine if a shared backchannel is in use | ||
| 44 | */ | ||
| 45 | static inline int svc_is_backchannel(const struct svc_rqst *rqstp) | ||
| 46 | { | ||
| 47 | if (rqstp->rq_server->bc_xprt) | ||
| 48 | return 1; | ||
| 49 | return 0; | ||
| 50 | } | ||
| 41 | #else /* CONFIG_NFS_V4_1 */ | 51 | #else /* CONFIG_NFS_V4_1 */ |
| 42 | static inline int xprt_setup_backchannel(struct rpc_xprt *xprt, | 52 | static inline int xprt_setup_backchannel(struct rpc_xprt *xprt, |
| 43 | unsigned int min_reqs) | 53 | unsigned int min_reqs) |
| 44 | { | 54 | { |
| 45 | return 0; | 55 | return 0; |
| 46 | } | 56 | } |
| 57 | |||
| 58 | static inline int svc_is_backchannel(const struct svc_rqst *rqstp) | ||
| 59 | { | ||
| 60 | return 0; | ||
| 61 | } | ||
| 47 | #endif /* CONFIG_NFS_V4_1 */ | 62 | #endif /* CONFIG_NFS_V4_1 */ |
| 48 | #endif /* _LINUX_SUNRPC_BC_XPRT_H */ | 63 | #endif /* _LINUX_SUNRPC_BC_XPRT_H */ |
| 49 | 64 | ||
