Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a65421ea authored by Stefan Richter's avatar Stefan Richter
Browse files

ieee1394: fix another deadlock in nodemgr

A "modprobe ohci1394; sleep 1.5; modprobe -r ohci1394" could get stuck
in uninterruptible state, especially if an external node was connected.
http://bugzilla.kernel.org/show_bug.cgi?id=7792



Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
parent 3dc5ea9b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1681,7 +1681,8 @@ static int nodemgr_host_thread(void *__hi)
	for (;;) {
		/* Sleep until next bus reset */
		set_current_state(TASK_INTERRUPTIBLE);
		if (get_hpsb_generation(host) == generation)
		if (get_hpsb_generation(host) == generation &&
		    !kthread_should_stop())
			schedule();
		__set_current_state(TASK_RUNNING);