Skip to contentSkip to conversation

+ ipc-sem-seperate-wait-for-zero-and-alter-tasks-into-seperate-queues.patch added to -mm tree

PATCH [email protected] 1 participant 1 message May 30, 2013

lore
Share & tools
lore
#0 lore raw

Subject: + ipc-sem-seperate-wait-for-zero-and-alter-tasks-into-seperate-queues.patch added to -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Thu, 30 May 2013 14:13:50 -0700

The patch titled
Subject: ipc/sem: seperate wait-for-zero and alter tasks into seperate queues
has been added to the -mm tree. Its filename is
ipc-sem-seperate-wait-for-zero-and-alter-tasks-into-seperate-queues.patch

Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated there every 3-4 working days

------------------------------------------------------
From: Manfred Spraul <[email protected]>
Subject: ipc/sem: seperate wait-for-zero and alter tasks into seperate queues

Introduce seperate queues for operations that do not modify the semaphore values.
Advantages:
- Simpler logic in check_restart().
- Faster update_queue(): Right now, all wait-for-zero operations are always tested, even if the semaphore value is not 0.
- wait-for-zero gets again priority, as in linux <=3.0.9

---

 include/linux/sem.h |    5 -
 ipc/sem.c           |  209 +++++++++++++++++++++++++++++-------------
 2 files changed, 153 insertions(+), 61 deletions(-)
include/linux/sem.h renamed from include/linux/sem.h~ipc-sem-seperate-wait-for-zero-and-alter-tasks-into-seperate-queues +4 -1
diff -puN include/linux/sem.h~ipc-sem-seperate-wait-for-zero-and-alter-tasks-into-seperate-queues include/linux/sem.h
@@ -15,7 +15,10 @@ struct sem_array {
 	time_t			sem_otime;	/* last semop time */
 	time_t			sem_ctime;	/* last change time */
 	struct sem		*sem_base;	/* ptr to first semaphore in array */
-	struct list_head	sem_pending;	/* pending operations to be processed */
+	struct list_head	pending_alter;	/* pending operations */
+						/* that alter the array */
+	struct list_head	pending_const;	/* pending complex operations */
+						/* that do not alter semvals */
 	struct list_head	list_id;	/* undo requests on this array */
 	int			sem_nsems;	/* no. of semaphores in array */
 	int			complex_count;	/* pending complex operations */
ipc/sem.c renamed from ipc/sem.c~ipc-sem-seperate-wait-for-zero-and-alter-tasks-into-seperate-queues +149 -60

345 lines not on this page · raw message

_

Patches currently in -mm which might be from [email protected] are

ipc-sem-seperate-wait-for-zero-and-alter-tasks-into-seperate-queues.patch ipc-semc-always-use-only-one-queue-for-alter-operations.patch ipc-semc-rename-try_atomic_semop-to-perform_atomic_semop-docu-update.patch slab-leaks3-default-y.patch