Re: Sleeping in "rip6_output" with the following non-sleepable locks held

From: Jun Kuriyama <kuriyama_at_imgsrc.co.jp>
Date: Wed, 11 Aug 2004 15:54:21 +0900
At Tue, 10 Aug 2004 21:39:09 -0700,
George V. Neville-Neil wrote:
> > I believe this is what you mean:
> > 
> > _at__at_ -376,7 +377,12 _at__at_
> >  		code = icmp6->icmp6_code;
> >  	}
> >  
> > -	M_PREPEND(m, sizeof(*ip6), M_TRYWAIT);
> > +	M_PREPEND(m, sizeof(*ip6), M_DONTWAIT);
> > +	if (m == NULL) {
> > +		error = ENOBUFS;
> > +		goto bad;
> > +	}
> > +
> >  	ip6 = mtod(m, struct ip6_hdr *);
> >  
> >  	/*
> 
> Sorry, forgot to put in the the name of the file.  It's 
> 
> sys/netinet6/raw_ip6.c

Thanks!  That message is disappeared with your patch.


-- 
Jun Kuriyama <kuriyama_at_imgsrc.co.jp> // IMG SRC, Inc.
             <kuriyama_at_FreeBSD.org> // FreeBSD Project
Received on Wed Aug 11 2004 - 04:54:28 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:05 UTC