+ semaphore-give-an-unlikely-for-downs-timeout.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: semaphore: use unlikely() for down's timeout
has been added to the -mm tree.  Its filename is
     semaphore-give-an-unlikely-for-downs-timeout.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: liguang <lig.fnst@xxxxxxxxxxxxxx>
Subject: semaphore: use unlikely() for down's timeout

Signed-off-by: liguang <lig.fnst@xxxxxxxxxxxxxx>
Cc: Jiri Kosina <jkosina@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 kernel/semaphore.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN kernel/semaphore.c~semaphore-give-an-unlikely-for-downs-timeout kernel/semaphore.c
--- a/kernel/semaphore.c~semaphore-give-an-unlikely-for-downs-timeout
+++ a/kernel/semaphore.c
@@ -214,7 +214,7 @@ static inline int __sched __down_common(
 	for (;;) {
 		if (signal_pending_state(state, task))
 			goto interrupted;
-		if (timeout <= 0)
+		if (unlikely(timeout <= 0))
 			goto timed_out;
 		__set_task_state(task, state);
 		raw_spin_unlock_irq(&sem->lock);
_

Patches currently in -mm which might be from lig.fnst@xxxxxxxxxxxxxx are

semaphore-give-an-unlikely-for-downs-timeout.patch
semaphore-boolize-semaphore_waiters-up.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux