Re: [PATCH 2/6] uprobes: introduce is_swbp_at_addr_fast()

From: Peter Zijlstra
Date: Tue Apr 17 2012 - 15:54:06 EST


On Tue, 2012-04-17 at 19:09 +0200, Oleg Nesterov wrote:
>
> This reminds me. Why read_opcode() does lock_page? I was going
> to send the cleanup which removes it, but I need to recheck.
>
> Perhaps you can explain the reason?

I can't seem to recall, I suspect its to serialize against
__replace_page(). I can't say if that's strictly needed though.
--
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/