Re: [PATCH v5 3.1.0-rc4-tip 3/26] Uprobes: register/unregisterprobes.
From: Oleg Nesterov
Date: Fri Oct 07 2011 - 13:08:08 EST
On 10/06, Srikar Dronamraju wrote:
> * Oleg Nesterov <oleg@xxxxxxxxxx> [2011-10-05 20:50:08]:
> yes we might be doing an unnecessary __register_uprobe() but because it
> raced with unregister_uprobe() and got the lock, we would avoid doing a
> However I am okay to move the lock before del_consumer().
To me this looks a bit "safer" even if currently __register is idempotent.
> Please let me
> know how you prefer this.
No, no, Srikar. Please do what you prefer. You are the author.
And btw I forgot to mention that initially I wrongly thought this is buggy.
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/