*Sorry if you get it twice. Looks like I sent from wrong email.* Harald Welte wrote: > Please consider / comment the following (untested) patch. Yes. That's much less complicated than the other proposed patch. > > Not really sure whether nesting the rwlock inside the mutex is that much > of a good idea... but as the comment indicates, I think it's the best we > can get. I think the best we actually can get, is also replacing those rwlock's with simple lock's. As you said on IRC, that's a bit overkill. Incremental (also untested, but compiles) patch to your is attached.