svn commit: r290664 - in head: share/man/man9 sys/kern sys/sys

Bryan Drewery bdrewery at FreeBSD.org
Fri Nov 13 21:43:48 UTC 2015


On 11/13/2015 1:24 PM, Randall Stewart wrote:
> Looking at the patch, we need a define of your
> 
> _callout_stop_safe
> 
> and we need to switch
> 
> callout_stop()’s define to use the new _callout_stop_safe()

For both cases, there would be no reason to have new code call my
wrapper. The defines in my patch are fine for new code. The "new"
_callout_stop_safe function is just for existing modules.

I think the historical consensus is to not commit my patch though as
people should recompile their modules when the kernel is updated, before
rebooting into the new kernel even.


> 
> R
> On Nov 13, 2015, at 4:20 PM, Randall Stewart <rrs at netflix.com
> <mailto:rrs at netflix.com>> wrote:
> 
>> No alexander’s panic’s are because the
>> LLREF
>> is done if (callout_stop())
>>
>> But now if it was not running -1 is returned..
>>
>> Try the patch I just sent..
>>
>> R
>> On Nov 13, 2015, at 4:02 PM, Bryan Drewery <bdrewery at FreeBSD.org
>> <mailto:bdrewery at FreeBSD.org>> wrote:
>>
>>> On 11/13/2015 1:00 PM, Randall Stewart wrote:
>>>> Bryan:
>>>>
>>>> This looks like a decent thing to do..
>>>>
>>>> Still wondering why changing the callout.h header file would not
>>>> have caused
>>>> things to recompile to pick up the new argument..
>>>>
>>>> We can do it this way though it looks fine.
>>>>
>>>> You want to commit it or I?
>>>
>>> Well your change is totally safe for compiling. It's just not KBI
>>> backwards compat for older modules. This is not typically a problem but
>>> I think in this case it is worth doing to avoid random data coming into
>>> the 'drain' argument if loading an older module.
>>>
>>> I'll do a test build and commit it. Perhaps this is what was leading to
>>> Alexander's panics.
>>>
>>> I haven't analyzed the return value issue at all.
>>>
>>>


-- 
Regards,
Bryan Drewery

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-all/attachments/20151113/d2a67080/attachment.bin>


More information about the svn-src-all mailing list