On Tue, 20 May 2008, Remy Bohmer wrote:Remy, Can you see if this helps, Signed-off-by: Steven Rostedt <srostedt@redhat.com> --- kernel/rtmutex.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) Index: linux-2.6.24.7-rt9/kernel/rtmutex.c =================================================================== --- linux-2.6.24.7-rt9.orig/kernel/rtmutex.c 2008-05-20 17:11:29.000000000 -0400 +++ linux-2.6.24.7-rt9/kernel/rtmutex.c 2008-05-20 17:13:18.000000000 -0400 @@ -1577,7 +1577,7 @@ rt_write_fastlock(struct rw_mutex *rwm, void fastcall (*slowfn)(struct rw_mutex *rwm, int mtx), int mtx) { - unsigned long val = (unsigned long)current | RT_RWLOCK_WRITER; + struct task_struct *val = (void *)((unsigned long)current | RT_RWLOCK_WRITER); if (likely(rt_rwlock_cmpxchg(rwm, NULL, val))) rt_mutex_deadlock_account_lock(&rwm->mutex, current); @@ -1617,7 +1617,7 @@ static inline int rt_write_fasttrylock(struct rw_mutex *rwm, int fastcall (*slowfn)(struct rw_mutex *rwm, int mtx), int mtx) { - unsigned long val = (unsigned long)current | RT_RWLOCK_WRITER; + struct task_struct *val = (void *)((unsigned long)current | RT_RWLOCK_WRITER); if (likely(rt_rwlock_cmpxchg(rwm, NULL, val))) { rt_mutex_deadlock_account_lock(&rwm->mutex, current); @@ -1902,7 +1902,7 @@ rt_write_fastunlock(struct rw_mutex *rwm int mtx), int mtx) { - unsigned long val = (unsigned long)current | RT_RWLOCK_WRITER; + struct task_struct *val = (void *)((unsigned long)current | RT_RWLOCK_WRITER); WARN_ON(rt_rwlock_owner(rwm) != current); if (likely(rt_rwlock_cmpxchg(rwm, (struct task_struct *)val, NULL))) --
| Dmitry Torokhov | 2.6.27-rc8+ - first impressions |
| Linus Torvalds | Linux 2.6.27-rc8 |
| Nick Piggin | [patch 3/6] mm: fix fault vs invalidate race for linear mappings |
| Alan Cox | [PATCH 00/76] Queued TTY Patches |
git: | |
| Petr Baudis | [FYI][PATCH] Customizing the WinGit installer |
| Pierre Habouzit | Re: git push (mis ?)behavior |
| Mark Levedahl | Allowing override of the default "origin" nickname |
| Junio C Hamano | [PATCH] Detached HEAD (experimental) |
| Richard Stallman | Real men don't attack straw men |
| Luca Dell'Oca | Authenticate squid in Active Directory |
| Leon Dippenaar | New tcp stack attack |
| Nuno Magalhães | Can't scp, ssh is slow to authenticate. |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| KOSAKI Motohiro | [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
| Andi Kleen | Re: [PATCH] Disable TSO for non standard qdiscs |
| Alexey Dobriyan | [PATCH 01/33] nf_conntrack_sip: de-static helper pointers |
