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@xxxxxxxxxxxxxx> > --- > 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 > > > -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html