diff options
author | Paul Saab <ps@FreeBSD.org> | 2004-12-06 17:33:52 +0000 |
---|---|---|
committer | Paul Saab <ps@FreeBSD.org> | 2004-12-06 17:33:52 +0000 |
commit | b8d0fc9581f141c4437fa2d41ef85a2266dba1c7 (patch) | |
tree | 534a6e09b19a42319606629ce43460d95a24d8ef /sys/nfsclient/nfs_subs.c | |
parent | 5ddb073996772c48755560020af1afea4a62b386 (diff) |
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
Notes
Notes:
svn path=/head/; revision=138463
Diffstat (limited to 'sys/nfsclient/nfs_subs.c')
-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 8467b769a15b..b91adae88490 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; |