git: kernel - pipe locks are not needed in the kqueue event code

Matthew Dillon dillon at crater.dragonflybsd.org
Sat May 25 11:52:37 PDT 2019


commit 945890d828b4dec618f4d20bdacb52937b3413d8
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat May 25 11:49:46 2019 -0700

    kernel - pipe locks are not needed in the kqueue event code
    
    * The kqueue event code locks the knote itself, and this should be
      sufficient to interlock any race between the filter and the
      other side.
    
      Remove the token locks from the event filters and add a little code
      to handle any invalid kn_data values (due to not being locked).
    
    Testing-with: sysutils/pv (via zrj)

Summary of changes:
 sys/kern/sys_pipe.c | 25 ++++++++++++++++++++++++-
 1 file changed, 24 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/945890d828b4dec618f4d20bdacb52937b3413d8


-- 
DragonFly BSD source repository



More information about the Commits mailing list