svn commit: r355333 - stable/12/sys/cam

Ian Lepore ian at freebsd.org
Tue Dec 3 16:48:04 UTC 2019


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.

-- Ian




More information about the svn-src-all mailing list