Skip to contentSkip to conversation

ipc-semc-store-which-operation-blocks-in-perform_atomic_semop.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jun 9, 2014

lore
Share & tools
lore
#0 lore raw

Subject: [merged] ipc-semc-store-which-operation-blocks-in-perform_atomic_semop.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 09 Jun 2014 12:38:07 -0700

The patch titled
Subject: ipc/sem.c: store which operation blocks in perform_atomic_semop()
has been removed from the -mm tree. Its filename was
ipc-semc-store-which-operation-blocks-in-perform_atomic_semop.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Manfred Spraul <[email protected]>
Subject: ipc/sem.c: store which operation blocks in perform_atomic_semop()

Preparation for the next patch:

In the slow-path of perform_atomic_semop(), store a pointer to the operation that caused the operation to block.

Cc Davidlohr Bueso <[email protected]>
Cc Michael Kerrisk <[email protected]>

---

 ipc/sem.c |    3 +++
 1 file changed, 3 insertions(+)
ipc/sem.c renamed from ipc/sem.c~ipc-semc-store-which-operation-blocks-in-perform_atomic_semop +3 -0
diff -puN ipc/sem.c~ipc-semc-store-which-operation-blocks-in-perform_atomic_semop ipc/sem.c
@@ -109,6 +109,7 @@ struct sem_queue {
 	int			pid;	 /* process id of requesting process */
 	int			status;	 /* completion status of operation */
 	struct sembuf		*sops;	 /* array of pending operations */
+	struct sembuf		*blocking; /* the operation that blocked */
 	int			nsops;	 /* number of operations */
 	int			alter;	 /* does *sops alter the array? */
 };
@@ -642,6 +643,8 @@ out_of_range:
 	goto undo;
 
 would_block:
+	q->blocking = sop;
+
 	if (sop->sem_flg & IPC_NOWAIT)
 		result = -EAGAIN;
 	else

_

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

origin.patch
slab-leaks3-default-y.patch