Thread (22 messages) 22 messages, 5 authors, 2007-02-22

Re: [patch 1/4] ps3fb: thread updates

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2007-02-15 21:43:58
Also in: linuxppc-dev

On Thu, 2007-02-15 at 18:50 +0100, Christoph Hellwig wrote:
On Thu, Feb 15, 2007 at 04:23:02PM +0100, Geert.Uytterhoeven@sonycom.com wrote:
quoted
+	do {
+		try_to_freeze();
+		error = down_interruptible(&ps3fb.sem);
+		if (!error && !atomic_read(&ps3fb.ext_flip))
 			ps3fb_sync(0);	/* single buffer */
this still can deadlock when calling kthread_stop.  You really want
to use wake_up_process to kick this thread or use a workqueue.
kthread_stop does wake_up_process no ? However, that might not get you
out of interruptible if you don't also have signal_pending...

Ben.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help