Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Aug 2015 11:50:11 +0200
From:      Ed Schouten <ed@nuxi.nl>
To:        Luiz Otavio O Souza <loos@freebsd.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org,  svn-src-head@freebsd.org
Subject:   Re: svn commit: r286142 - head/sys/net
Message-ID:  <CABh_MKn5vfXB4Hv3mfAVgy7g98_U%2BcQ=XKyVTLdVJO3pp0-05Q@mail.gmail.com>
In-Reply-To: <201507312143.t6VLhSBm046797@repo.freebsd.org>
References:  <201507312143.t6VLhSBm046797@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Luiz,

2015-07-31 23:43 GMT+02:00 Luiz Otavio O Souza <loos@freebsd.org>:
> -               while (d->bd_hbuf_in_use)
> -                       mtx_sleep(&d->bd_hbuf_in_use, &d->bd_lock,
> -                           PRINET, "bd_hbuf", 0);

Would it make sense to replace them by an assertion, instead of
omitting them entirely?

KASSERT(!d->bd_hbuf_in_use, ("..."));

Thanks,
-- 
Ed Schouten <ed@nuxi.nl>
Nuxi, 's-Hertogenbosch, the Netherlands
KvK/VAT number: 62051717



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABh_MKn5vfXB4Hv3mfAVgy7g98_U%2BcQ=XKyVTLdVJO3pp0-05Q>