Messages in this thread | | | Date | Thu, 29 Apr 2004 12:22:09 -0700 | From | Tim Hockin <> | Subject | Re: BUG: might_sleep in /proc/swaps code |
| |
On Thu, Apr 29, 2004 at 03:03:09AM +0100, viro@parcelfarce.linux.theplanet.co.uk wrote: > OK, here comes. New semaphore protecting insertions/removals in the > set of swap components + switch of ->start()/->stop() to the same > semaphore [fixes deadlocks] + trivial cleanup of ->next(). > > See if it works for you...
Well, it stops bitching about might_sleep(), so it solves the obvious problems. I'm not in a position to comment about the other complexities of swapfile.c, so I'll take it on faith that you got it right. :)
Thanks Tim - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |