From owner-svn-src-all@freebsd.org Sat Aug 20 17:18:20 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 37A0CBC0606; Sat, 20 Aug 2016 17:18:20 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 1B6BF1848; Sat, 20 Aug 2016 17:18:20 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id 1334714F6; Sat, 20 Aug 2016 17:18:20 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id C65772311D; Sat, 20 Aug 2016 17:18:19 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id Se97EHV2nC9I; Sat, 20 Aug 2016 17:18:16 +0000 (UTC) Subject: Re: svn commit: r304244 - head/sys/kern DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com C054C23117 To: Gleb Smirnoff , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201608162155.u7GLtYp4091232@repo.freebsd.org> From: Bryan Drewery Openpgp: id=F9173CB2C3AAEA7A5C8A1F0935D771BB6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Organization: FreeBSD Message-ID: <529d7219-4dc9-eb06-2a5d-682c725855f6@FreeBSD.org> Date: Sat, 20 Aug 2016 10:18:14 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <201608162155.u7GLtYp4091232@repo.freebsd.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wHtvbNoT5HReuwovSiwOqFQdfUfw5jNmc" X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Aug 2016 17:18:20 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --wHtvbNoT5HReuwovSiwOqFQdfUfw5jNmc Content-Type: multipart/mixed; boundary="je8VnCsmxL1ejnTS2WSvjbIdtebWlkmSf" From: Bryan Drewery To: Gleb Smirnoff , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Message-ID: <529d7219-4dc9-eb06-2a5d-682c725855f6@FreeBSD.org> Subject: Re: svn commit: r304244 - head/sys/kern References: <201608162155.u7GLtYp4091232@repo.freebsd.org> In-Reply-To: <201608162155.u7GLtYp4091232@repo.freebsd.org> --je8VnCsmxL1ejnTS2WSvjbIdtebWlkmSf Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 8/16/2016 2:55 PM, Gleb Smirnoff wrote: > Author: glebius > Date: Tue Aug 16 21:55:34 2016 > New Revision: 304244 > URL: https://svnweb.freebsd.org/changeset/base/304244 >=20 > Log: > We should not be allowing a timeout to reset when a drain is in progr= ess on > it (either async or sync drain). > =20 > At this moment the only user of drain is TCP, but TCP wouldn't resche= dule a > callout after it has drained it, since it drains only when a tcpcb is= closed. > This for now the problem isn't observed. > =20 > Submitted by: rrs Should this be MFC'd into 11.0? >=20 > Modified: > head/sys/kern/kern_timeout.c >=20 > Modified: head/sys/kern/kern_timeout.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/sys/kern/kern_timeout.c Tue Aug 16 21:32:05 2016 (r304243) > +++ head/sys/kern/kern_timeout.c Tue Aug 16 21:55:34 2016 (r304244) > @@ -1061,7 +1061,7 @@ callout_reset_sbt_on(struct callout *c,=20 > */ > if (c->c_lock !=3D NULL && !cc_exec_cancel(cc, direct)) > cancelled =3D cc_exec_cancel(cc, direct) =3D true; > - if (cc_exec_waiting(cc, direct)) { > + if (cc_exec_waiting(cc, direct) || cc_exec_drain(cc, dir)) { > /* > * Someone has called callout_drain to kill this > * callout. Don't reschedule. >=20 --=20 Regards, Bryan Drewery --je8VnCsmxL1ejnTS2WSvjbIdtebWlkmSf-- --wHtvbNoT5HReuwovSiwOqFQdfUfw5jNmc Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJXuJDWAAoJEDXXcbtuRpfP2MYH/2GQ3qnxniBeflXbty2Eml/g Paz2/gYCydCRtTKbflW9ZT1szB913ju0T6IswdBjXjsUm4bls6sME5/37D0bqBj1 3ril9Vz7uC1T5HEQ65giK0l/r6ROsL7IOJ9befUjOQo5OTe6XqPf878xk3pxmjhM XtrmBy6wW4nvRgZJRxY2nFbP7efH/14ugexeksf4NA3n6aoY+kG5SHHpVLSzUDdi 3v2YOulmnPVGkTSt5Kd9J0VMdtTkBnvRfXhR1PwCByfAPHf0MYsfAmhF9B0H32GJ AuKV3Bny5KEahQjW3G7VBBfd0+cD25kKfxzrZgyJZS/o+Fz/+5m1AbLX73MfKRg= =u2W6 -----END PGP SIGNATURE----- --wHtvbNoT5HReuwovSiwOqFQdfUfw5jNmc--