]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/sunrpc/svc_xprt.c
nfsd: don't use the deferral service, return NFS4ERR_DELAY
[linux-2.6-omap-h63xx.git] / net / sunrpc / svc_xprt.c
index 1e66f249146059b4f816fa510b09136ced77aa21..600d0918e3aea135a8c9df8cd9b43e169019c550 100644 (file)
@@ -974,7 +974,7 @@ static struct cache_deferred_req *svc_defer(struct cache_req *req)
        struct svc_rqst *rqstp = container_of(req, struct svc_rqst, rq_chandle);
        struct svc_deferred_req *dr;
 
-       if (rqstp->rq_arg.page_len)
+       if (rqstp->rq_arg.page_len || !rqstp->rq_usedeferral)
                return NULL; /* if more than a page, give up FIXME */
        if (rqstp->rq_deferred) {
                dr = rqstp->rq_deferred;