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

From: Jun Kuriyama <kuriyama_at_imgsrc.co.jp>
Date: Thu, 12 Aug 2004 14:17:22 +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

Do you have a plan to commit this?


-- 
Jun Kuriyama <kuriyama_at_imgsrc.co.jp> // IMG SRC, Inc.
             <kuriyama_at_FreeBSD.org> // FreeBSD Project
Received on Thu Aug 12 2004 - 03:17:29 UTC

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