Re: [PATCH V3] rtmutex: ensure only the top waiter or higherpriority task can take the lock and remove unrelated boosting
From: Steven Rostedt
Date: Wed Jan 12 2011 - 12:03:23 EST
On Thu, 2010-12-23 at 16:49 +0800, Lai Jiangshan wrote:
> In current rtmutex, the pending owner may be boosted by the tasks
> in the rtmutex's waitlist when the pending owner is deboosted
> or a task in the waitlist is boosted. This boosting is unrelated,
> because the pending owner does not really take the rtmutex.
> It is not reasonable.
Hi Lai,
Your patch looks like it is proving itself in -rt (after I fixed a bunch
of -rt stuff to get your stuff working ;).
Could you repost your patch with the following removed:
> /*
> - * This happens when we have stolen the lock and the original
> - * pending owner did not enqueue itself back on the rt_mutex.
> - * Thats not a tragedy. We know that way, that a lock waiter
> - * is on the fly. We make the futex_q waiter the pending
> owner.
> - */
> - if (!new_owner)
> - new_owner = this->task;
> -
> - /*
>
>
I already have the comment changed, you can just omit this part.
Thanks!
-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/