git: idr: Protect data structures with a lwkt_token

Francois Tigeot ftigeot at crater.dragonflybsd.org
Sun Oct 6 06:06:06 PDT 2013


commit b68b47fb4a1a1986f632aaaacd4be9a274a5bfd1
Author: François Tigeot <ftigeot at wolfpond.org>
Date:   Sun Oct 6 15:04:57 2013 +0200

    idr: Protect data structures with a lwkt_token
    
    Using spinlocks is not a good idea when you have to allocate memory

Summary of changes:
 sys/libkern/idr.c | 93 +++++++++++++++++++++++++++++++------------------------
 sys/sys/idr.h     |  4 +--
 2 files changed, 55 insertions(+), 42 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b68b47fb4a1a1986f632aaaacd4be9a274a5bfd1


-- 
DragonFly BSD source repository



More information about the Commits mailing list