diff options
author | ps <ps@FreeBSD.org> | 2004-12-06 17:33:52 +0000 |
---|---|---|
committer | ps <ps@FreeBSD.org> | 2004-12-06 17:33:52 +0000 |
commit | 5feadd3eba463ffad1e8b8e55a5ff30c5ccc861a (patch) | |
tree | 534a6e09b19a42319606629ce43460d95a24d8ef /sys/nfsclient | |
parent | e196d800834b17b34ab2b098462739d2da4b3a24 (diff) | |
download | FreeBSD-src-5feadd3eba463ffad1e8b8e55a5ff30c5ccc861a.zip FreeBSD-src-5feadd3eba463ffad1e8b8e55a5ff30c5ccc861a.tar.gz |
Add non-blocking versions of nfsm_dissect() and friends, for use from
socket callbacks or similar callers, from both the NFS client and the
server.
Instituted nfsm_dissect_nonblock(), nfsm_dissect_xx_nonblock(). And
nfsm_disct() now takes an extra M_TRYWAIT/M_DONTWAIT argument.
Submitted by: Mohan Srinivasan mohans at yahoo-inc dot com
Diffstat (limited to 'sys/nfsclient')
-rw-r--r-- | sys/nfsclient/nfs_subs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/nfsclient/nfs_subs.c b/sys/nfsclient/nfs_subs.c index 8467b76..b91adae 100644 --- a/sys/nfsclient/nfs_subs.c +++ b/sys/nfsclient/nfs_subs.c @@ -478,7 +478,7 @@ nfs_loadattrcache(struct vnode **vpp, struct mbuf **mdp, caddr_t *dposp, md = *mdp; t1 = (mtod(md, caddr_t) + md->m_len) - *dposp; - cp2 = nfsm_disct(mdp, dposp, NFSX_FATTR(v3), t1); + cp2 = nfsm_disct(mdp, dposp, NFSX_FATTR(v3), t1, M_TRYWAIT); if (cp2 == NULL) return EBADRPC; fp = (struct nfs_fattr *)cp2; |