Re: [patch] Minor PAGG attach/detach semantic change for 2.6.11
Erik Jacobson <[email protected]>
| Newsgroups | gmane.linux.process-aggregates |
|---|---|
| Message-ID | <[email protected]> |
> I think implementing a new pnotify's client becomes easier, > if pnotify_subscriber_list would be protected by rwlock. The issue I have here is an rwlock is really a spinlock... So that would forbid kernel modules from sleeping. This includes, for exmaple, waiting for memory to become free with kmalloc. The modules wouldn't be able to use semaphores on their own either. We could investigate trying to convert the job code, for example, to never sleep with the lock held but I'm not sure how easy that would be. On the other hand, I understand the community is anxious about modules being able to sleep in the fork or exit path. I don't think we can do everything we want to do if the subscriber list is locked with rwlock. But I'm open to being convinced otherwise :) Erik