[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAOS58YP8o9xQvZJtpEJobChhJ+pSDQ9PqDwaXFS_h+JFd65jOw@mail.gmail.com>
Date: Thu, 15 Dec 2011 10:40:42 -0800
From: Tejun Heo <tj@...nel.org>
To: Petr Tesarik <ptesarik@...e.cz>
Cc: Cong Wang <xiyou.wangcong@...il.com>, linux-mm@...ck.org,
LKML <linux-kernel@...r.kernel.org>,
Vivek Goyal <vgoyal@...hat.com>, surovegin@...gle.com,
gthelen@...gle.com
Subject: Re: Is per_cpu_ptr_to_phys broken?
Hello,
> Now, per_cpu_ptr() gives the correct virtual address, but
> per_cpu_ptr_to_phys() gets the result wrong, regardless whether it thinks that
> the address is in the first chunk or not:
Yeah, that's me forgetting "+ offset_in_page()" after vmalloc page
translation, which incidentally was also discovered by surovegin last
night. It has been broken forever, by which I mean longer than six
months. I wonder why this is coming up only now. Anyways, please send
me a patch, I'll be push it mainline & to stable.
Thanks.
--
tejun
--
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