From: "J. Bruce Fields" <bfields@fieldses.org>
To: Mi Jinlong <mijinlong@cn.fujitsu.com>
Cc: NFSv3 list <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH] NFS4.1: server gets drc mem fail should reply error at create_session
Date: Fri, 12 Nov 2010 15:13:56 -0500 [thread overview]
Message-ID: <20101112201356.GE32745@fieldses.org> (raw)
In-Reply-To: <4CDBBF86.6080800@cn.fujitsu.com>
On Thu, Nov 11, 2010 at 06:03:50PM +0800, Mi Jinlong wrote:
> When server gets drc mem fail, it should reply error to client.
Whoops, thanks--applying.
--b.
>
> Signed-off-by: Mi Jinlong <mijinlong@cn.fujitsu.com>
> ---
> fs/nfsd/nfs4state.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
> index 3876a9c..ea6466c 100644
> --- a/fs/nfsd/nfs4state.c
> +++ b/fs/nfsd/nfs4state.c
> @@ -745,6 +745,8 @@ static struct nfsd4_session *alloc_init_session(struct svc_rqst *rqstp, struct n
> */
> slotsize = nfsd4_sanitize_slot_size(fchan->maxresp_cached);
> numslots = nfsd4_get_drc_mem(slotsize, fchan->maxreqs);
> + if (numslots < 1)
> + return NULL;
>
> new = alloc_session(slotsize, numslots);
> if (!new) {
> --
> 1.7.0.1
>
>
>
prev parent reply other threads:[~2010-11-12 20:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-11 10:03 [PATCH] NFS4.1: server gets drc mem fail should reply error at create_session Mi Jinlong
2010-11-12 20:13 ` J. Bruce Fields [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101112201356.GE32745@fieldses.org \
--to=bfields@fieldses.org \
--cc=linux-nfs@vger.kernel.org \
--cc=mijinlong@cn.fujitsu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.