Re: [Patch] mmu_notifiers destroyed by __mmu_notifier_release()retain extra mm_count.

From: Robin Holt
Date: Thu Feb 05 2009 - 15:02:45 EST


On Thu, Feb 05, 2009 at 02:30:29PM -0500, Christoph Lameter wrote:
> The drop of the refcount needs to occur after the last use of
> data in the mmstruct because mmdrop() may free the mmstruct.

Not this time. We are being called from process termination and the
calling function is assured to hold one reference count.

We would also have to track how many callouts were made and then do
drops in a loop, but as stated above, I don't think it is needed.

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