+ spinlocks-check-spinlock_t-rwlock_t-argument-type-on-non-smp-builds-v3.patch added to -mm tree

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

 



The patch titled
     spinlocks-check-spinlock_t-rwlock_t-argument-type-on-non-smp-builds-v3
has been added to the -mm tree.  Its filename is
     spinlocks-check-spinlock_t-rwlock_t-argument-type-on-non-smp-builds-v3.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 ***

See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: spinlocks-check-spinlock_t-rwlock_t-argument-type-on-non-smp-builds-v3
From: David Kilroy <kilroyd@xxxxxxxxxxxxxx>

 * Correct bug in _spin_trylock_bh

Signed-off-by: David Kilroy <kilroyd@xxxxxxxxxxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxx>
Cc: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 include/linux/spinlock_api_up.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN include/linux/spinlock_api_up.h~spinlocks-check-spinlock_t-rwlock_t-argument-type-on-non-smp-builds-v3 include/linux/spinlock_api_up.h
--- a/include/linux/spinlock_api_up.h~spinlocks-check-spinlock_t-rwlock_t-argument-type-on-non-smp-builds-v3
+++ a/include/linux/spinlock_api_up.h
@@ -97,7 +97,7 @@ static inline int _write_trylock(rwlock_
 { __LOCK(lock); return 1; }
 
 static inline int _spin_trylock_bh(spinlock_t *lock)
-{ __LOCK(lock); return 1; }
+{ __LOCK_BH(lock); return 1; }
 
 static inline void _spin_unlock(spinlock_t *lock)
 { __UNLOCK(lock); }
_

Patches currently in -mm which might be from kilroyd@xxxxxxxxxxxxxx are

linux-next.patch
spinlocks-check-spinlock_t-rwlock_t-argument-type-on-non-smp-builds.patch
spinlocks-check-spinlock_t-rwlock_t-argument-type-on-non-smp-builds-v3.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