[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5448D515.90006@cn.fujitsu.com>
Date: Thu, 23 Oct 2014 18:14:45 +0800
From: Lai Jiangshan <laijs@...fujitsu.com>
To: Peter Zijlstra <peterz@...radead.org>
CC: <torvalds@...ux-foundation.org>, <paulmck@...ux.vnet.ibm.com>,
<tglx@...utronix.de>, <akpm@...ux-foundation.org>,
<riel@...hat.com>, <mgorman@...e.de>, <oleg@...hat.com>,
<mingo@...hat.com>, <minchan@...nel.org>,
<kamezawa.hiroyu@...fujitsu.com>, <viro@...iv.linux.org.uk>,
<dave@...olabs.net>, <linux-kernel@...r.kernel.org>,
<linux-mm@...ck.org>
Subject: Re: [RFC][PATCH 4/6] SRCU free VMAs
>
> +struct vm_area_struct *find_vma_srcu(struct mm_struct *mm, unsigned long addr)
> +{
> + struct vm_area_struct *vma;
> + unsigned int seq;
> +
> + WARN_ON_ONCE(!srcu_read_lock_held(&vma_srcu));
> +
> + do {
> + seq = read_seqbegin(&mm->mm_seq);
> + vma = __find_vma(mm, addr);
will the __find_vma() loops for ever due to the rotations in the RBtree?
> + } while (read_seqretry(&mm->mm_seq, seq));
> +
> + return vma;
> +}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists