From owner-svn-src-stable@freebsd.org Tue Dec 3 16:54:56 2019 Return-Path: Delivered-To: svn-src-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1C5361B584C; Tue, 3 Dec 2019 16:54:56 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47S7Pq1bBMz4cyj; Tue, 3 Dec 2019 16:54:54 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: by mail-yb1-xb32.google.com with SMTP id r201so1777543ybc.10; Tue, 03 Dec 2019 08:54:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:references:from:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=z8f2nuog4WbLaQ8N1AanFKFNKJc0cQRxjbwPa7+Dmew=; b=WCRtQCgFzgoNnSOd4xLby4Bu6uDyiCjWPyTpTg6X+fhYNEt2H5TU6uMhb7DZnQozQu lu70/WW/6Sq7gaFlfhwjZmwwwOIVqe8MJeRcOZM0yK3LYjv9YXgYvtcwMHcwFewByDsc kXIWY9MSzxKeQiOK2TKEaMSmFtTfumy42sUWupP6eqgiNjIANiyxb08MzH6zmoTmXQ+0 ZHVswb9Qwf6M+4KBQsEAiPdptpWVPTzbk2Nyp0vVH/ISJF6HtJv86PYGxkMvjEAp3plw xamZ0Pg5pbs8wMLRW+CT8GPnEupbo9NCzckYqt1MbHLGPaUeiyeijLIaXjTwh6r8ZgmF nNNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=z8f2nuog4WbLaQ8N1AanFKFNKJc0cQRxjbwPa7+Dmew=; b=AGHmhQvXdyFPPgRGV9+8nBlZG5cnpNTC8Zto7ctHkNpUtElMyQcjSTxrezFff7xN02 WALgcY6vY9heyo5QWwA+wuE3s6rnqfK6TB7tfZ7Yy9O6jX6MN1YWDkBnHGogK0fGcUhv zJpVSWwnpv41066g58UuoAVF/X3l8FgPA36IsOjL2VOB+Rn410ZNhN5Gd6wp2FIpNbAK 8s6CjgFtcUU1EdxDs86vqJ0fDfLHFNSzRv9ljckpCRIa40SMHWk0rf6H2jvgm52/++px GQcWrZtCKDyKX/L+5KMW+PY8hry27ZKAkta6s6GdIe/ChoIwrtWfnybEtJA08O6iGVHE j7Ww== X-Gm-Message-State: APjAAAWEH2mZQuwRHwOBzw0jDPsy79SnPqUd1cxgPuKomkB7bVbrofZg IapFAH3Sv5wxpOmsxUst3TfVFB8g X-Google-Smtp-Source: APXvYqzlAyw+s8xGRO4aNwenHfaKJXFP+DjWNgmF5ZYyF+3ey+IdrjwTVDJSlg3L79G6YwZYgFTrOQ== X-Received: by 2002:a25:c881:: with SMTP id y123mr4972768ybf.516.1575392093130; Tue, 03 Dec 2019 08:54:53 -0800 (PST) Received: from mavoffice.ixsystems.com ([12.189.233.129]) by smtp.gmail.com with ESMTPSA id k144sm1642510ywe.14.2019.12.03.08.54.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 03 Dec 2019 08:54:52 -0800 (PST) Sender: Alexander Motin Subject: Re: svn commit: r355333 - stable/12/sys/cam To: Ian Lepore , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org References: <201912031642.xB3GgXRD089746@repo.freebsd.org>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MLYBQkNMczMAAoJ EIMYw5VbqyJ/TqgH/RQHClkvecE0262lwKoP/m0Mh4I5TLRgoJJn8S7G1BnqohYJkiLqA6xe 6urGD7OqdNAl12UbrjWbdJV+zvea3vJoM4MZuYiYrGaXWxzFXqWJcPwMU9sAh8MRghHuuC5v gPb45Tnftw9/+n0i8GfVhQhOqepUGdQg4NPcXviSkoAvig6pp9Lcxisn0groUQKt15GcsS9Y cQWg3j9Hnipc6Mu416HX98Fb113NHJqc2geTHLkRyuBFOoyIqB6N9GKjzOAIzxxsVdl9Tevw Gsrp4M4/RFzWbSgsbOnbE7454lmuVZGfReEjnUm8RHp9Q2UWKXlp3exlZjvOp/uVEpCglz4= Message-ID: <1c18cdbb-2a6e-3cbb-048b-8f1f49a4cef5@FreeBSD.org> Date: Tue, 3 Dec 2019 11:54:51 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 47S7Pq1bBMz4cyj X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=WCRtQCgF; dmarc=none; spf=pass (mx1.freebsd.org: domain of mavbsd@gmail.com designates 2607:f8b0:4864:20::b32 as permitted sender) smtp.mailfrom=mavbsd@gmail.com X-Spamd-Result: default: False [-4.98 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[FreeBSD.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_FIVE(0.00)[5]; RCVD_COUNT_THREE(0.00)[3]; IP_SCORE(-2.78)[ip: (-9.67), ipnet: 2607:f8b0::/32(-2.24), asn: 15169(-1.94), country: US(-0.05)]; DKIM_TRACE(0.00)[gmail.com:+]; RCVD_IN_DNSWL_NONE(0.00)[2.3.b.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FORGED_SENDER(0.30)[mav@FreeBSD.org,mavbsd@gmail.com]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[mav@FreeBSD.org,mavbsd@gmail.com]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Dec 2019 16:54:56 -0000 On 03.12.2019 11:47, Ian Lepore wrote: > On Tue, 2019-12-03 at 16:42 +0000, Alexander Motin wrote: >> Author: mav >> Date: Tue Dec 3 16:42:32 2019 >> New Revision: 355333 >> URL: https://svnweb.freebsd.org/changeset/base/355333 >> >> Log: >> MFC r341756 (by scottl): >> Don't allocate the config_intrhook separately from the softc, it's >> small >> enough that it costs more code to handle the malloc/free than it >> saves. >> > > If it's a situation where the called hook routine always does a > disestablish of the hook (and nothing else does so), just use > config_intrhook_oneshot() and you don't need to manage the data struct > yourself at all. Right. That is what I have done in my later commit. The only downside of config_intrhook_oneshot() is that it require memory allocation unlike previous. -- Alexander Motin