Re: [PATCH 1/3] posix-timers: remove idr_lock

From: Eric Dumazet
Date: Fri Jun 10 2011 - 16:40:48 EST


Le vendredi 10 juin 2011 Ã 13:13 -0700, Andi Kleen a Ãcrit :
> From: Andi Kleen <ak@xxxxxxxxxxxxxxx>
>
> idr_lock is only used to protect the global posix_timers idr,
> but idr does its own locking (or RCUing) anyways and doesn't
> need it. So remove it.

Are you sure of this assertion Andi ?

I believe we need an external synchronization before calling
idr_remove() / idr_get_new()



--
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/