diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-12 13:39:41 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-12 13:39:41 -0500 |
commit | 61845143febe6b88349acad4732adc54894009a3 (patch) | |
tree | bed6a23efe05b9867b8b4d1f4d251fc1c562e7e4 /fs/lockd | |
parent | a26be149facb22d30cd92cadb26f651d6fe802c9 (diff) | |
parent | c23ae6017835b5bc9b9ec9d5d9c2b1523053f503 (diff) |
Merge branch 'for-3.20' of git://linux-nfs.org/~bfields/linux
Pull nfsd updates from Bruce Fields:
"The main change is the pNFS block server support from Christoph, which
allows an NFS client connected to shared disk to do block IO to the
shared disk in place of NFS reads and writes. This also requires xfs
patches, which should arrive soon through the xfs tree, barring
unexpected problems. Support for other filesystems is also possible
if there's interest.
Thanks also to Chuck Lever for continuing work to get NFS/RDMA into
shape"
* 'for-3.20' of git://linux-nfs.org/~bfields/linux: (32 commits)
nfsd: default NFSv4.2 to on
nfsd: pNFS block layout driver
exportfs: add methods for block layout exports
nfsd: add trace events
nfsd: update documentation for pNFS support
nfsd: implement pNFS layout recalls
nfsd: implement pNFS operations
nfsd: make find_any_file available outside nfs4state.c
nfsd: make find/get/put file available outside nfs4state.c
nfsd: make lookup/alloc/unhash_stid available outside nfs4state.c
nfsd: add fh_fsid_match helper
nfsd: move nfsd_fh_match to nfsfh.h
fs: add FL_LAYOUT lease type
fs: track fl_owner for leases
nfs: add LAYOUT_TYPE_MAX enum value
nfsd: factor out a helper to decode nfstime4 values
sunrpc/lockd: fix references to the BKL
nfsd: fix year-2038 nfs4 state problem
svcrdma: Handle additional inline content
svcrdma: Move read list XDR round-up logic
...
Diffstat (limited to 'fs/lockd')
-rw-r--r-- | fs/lockd/svclock.c | 4 | ||||
-rw-r--r-- | fs/lockd/xdr.c | 8 |
2 files changed, 2 insertions, 10 deletions
diff --git a/fs/lockd/svclock.c b/fs/lockd/svclock.c index 56598742dde4..5581e020644b 100644 --- a/fs/lockd/svclock.c +++ b/fs/lockd/svclock.c | |||
@@ -57,8 +57,8 @@ static DEFINE_SPINLOCK(nlm_blocked_lock); | |||
57 | static const char *nlmdbg_cookie2a(const struct nlm_cookie *cookie) | 57 | static const char *nlmdbg_cookie2a(const struct nlm_cookie *cookie) |
58 | { | 58 | { |
59 | /* | 59 | /* |
60 | * We can get away with a static buffer because we're only | 60 | * We can get away with a static buffer because this is only called |
61 | * called with BKL held. | 61 | * from lockd, which is single-threaded. |
62 | */ | 62 | */ |
63 | static char buf[2*NLM_MAXCOOKIELEN+1]; | 63 | static char buf[2*NLM_MAXCOOKIELEN+1]; |
64 | unsigned int i, len = sizeof(buf); | 64 | unsigned int i, len = sizeof(buf); |
diff --git a/fs/lockd/xdr.c b/fs/lockd/xdr.c index 9340e7e10ef6..5b651daad518 100644 --- a/fs/lockd/xdr.c +++ b/fs/lockd/xdr.c | |||
@@ -95,14 +95,6 @@ nlm_decode_fh(__be32 *p, struct nfs_fh *f) | |||
95 | return p + XDR_QUADLEN(NFS2_FHSIZE); | 95 | return p + XDR_QUADLEN(NFS2_FHSIZE); |
96 | } | 96 | } |
97 | 97 | ||
98 | static inline __be32 * | ||
99 | nlm_encode_fh(__be32 *p, struct nfs_fh *f) | ||
100 | { | ||
101 | *p++ = htonl(NFS2_FHSIZE); | ||
102 | memcpy(p, f->data, NFS2_FHSIZE); | ||
103 | return p + XDR_QUADLEN(NFS2_FHSIZE); | ||
104 | } | ||
105 | |||
106 | /* | 98 | /* |
107 | * Encode and decode owner handle | 99 | * Encode and decode owner handle |
108 | */ | 100 | */ |