VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   35 Branches   59 Tags
author: wang, biao <biao.wang@intel.com> 2013-05-16 09:50:13 +0800 committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2013-05-21 10:16:39 -0700 commit: ac5a2962b02f57dea76d314ef2521a2170b28ab6 parent: 97521978c5ea80857d4f4f74d4e1fc93721482cf
Commit Summary:
klist: del waiter from klist_remove_waiters before wakeup waitting process
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/lib/klist.c b/lib/klist.c
index 0874e41609a6..358a368a2947 100644
--- a/lib/klist.c
+++ b/lib/klist.c
@@ -193,10 +193,10 @@ static void klist_release(struct kref *kref)
 		if (waiter->node != n)
 			continue;
 
+		list_del(&waiter->list);
 		waiter->woken = 1;
 		mb();
 		wake_up_process(waiter->process);
-		list_del(&waiter->list);
 	}
 	spin_unlock(&klist_remove_lock);
 	knode_set_klist(n, NULL);