tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: MP-safe ifnet with psz & psref



On Tue, May 10, 2016 at 7:19 PM, Ryota Ozaki <ozaki-r%netbsd.org@localhost> wrote:
> Yet another patch is here:
>   http://www.netbsd.org/~ozaki-r/if_get.diff
>
> This trial patch introduces if_get that returns an ifnet
> object with holding psref and if_put that releases psref
> of the ifnet object. The patch replaces ifnet_lock with
> if_get/if_put and a simple mutex. The change fixes an
> issue that normal ioctls and if_clone_destroy on the
> same interface can run in parallel and it causes a panic.

Patches updated:
  http://www.netbsd.org/~ozaki-r/if_get.diff
  http://www.netbsd.org/~ozaki-r/retire-ifnet_lock.diff

The new one survived a stress test for a day (the old one
was still racy).

Thanks,
  ozaki-r


Home | Main Index | Thread Index | Old Index