Skip to contentSkip to conversation

replace wake_up() with wake_up_process()

PATCH New Dushan Tcholich 1 participant 1 message Oct 23, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 replace wake_up() with wake_up_process()

As in point 6. in todo list (http://pub.namesys.com/Reiser4/ToDo ) try to replace wake_up() with wake_up_process()

Patch is untested and against reiser4-for-2.6.22-2 patch

Good day

Dushan

reiser4-for-2.6.22-2-1.patch renamed from reiser4-for-2.6.22-2.patch.orig +5 -5
@@ -9313,7 +9313,7 @@ diff -urN linux-2.6.22.orig/fs/reiser4/e
 +#endif
 +	spin_unlock(&ent->guard);
 +	if (wake_up_ent)
-+		wake_up(&ent->wait);
++		wake_up_process(&ent->wait);
 +}
 +
 +#define ENTD_CAPTURE_APAGE_BURST SWAP_CLUSTER_MAX
@@ -9399,7 +9399,7 @@ diff -urN linux-2.6.22.orig/fs/reiser4/e
 +	ent->nr_todo_reqs++;
 +	list_add_tail(&rq.link, &ent->todo_list);
 +	if (ent->nr_todo_reqs == 1)
-+		wake_up(&ent->wait);
++		wake_up_process(&ent->wait);
 +
 +	spin_unlock(&ent->guard);
 +
@@ -14835,7 +14835,7 @@ diff -urN linux-2.6.22.orig/fs/reiser4/f
 +		/* If all write requests registered in this "fq" are done we up
 +		 * the waiter. */
 +		if (atomic_sub_and_test(bio->bi_vcnt, &fq->nr_submitted))
-+			wake_up(&fq->wait);
++			wake_up_process(&fq->wait);
 +	}
 +
 +	bio_put(bio);
@@ -22457,7 +22457,7 @@ diff -urN linux-2.6.22.orig/fs/reiser4/k
 +{
 +	assert("nikita-3234", mgr != NULL);
 +	assert("nikita-3235", mgr->daemon != NULL);
-+	wake_up(&mgr->daemon->wait);
++	wake_up_process(&mgr->daemon->wait);
 +}
 +
 +int is_current_ktxnmgrd(void)
@@ -23683,7 +23683,7 @@ diff -urN linux-2.6.22.orig/fs/reiser4/l
 +void __reiser4_wake_up(lock_stack * owner)
 +{
 +	atomic_set(&owner->wakeup, 1);
-+	wake_up(&owner->wait);
++	wake_up_process(&owner->wait);
 +}
 +
 +/* Puts a thread to sleep */