[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190724160929.GA14052@infradead.org>
Date: Wed, 24 Jul 2019 09:09:29 -0700
From: Christoph Hellwig <hch@...radead.org>
To: Bharath Vedartham <linux.bhar@...il.com>
Cc: sivanich@....com, arnd@...db.de, jhubbard@...dia.com,
ira.weiny@...el.com, jglisse@...hat.com,
gregkh@...uxfoundation.org, william.kucharski@...cle.com,
linux-kernel@...r.kernel.org, linux-mm@...ck.org
Subject: Re: [PATCH v2 3/3] sgi-gru: Use __get_user_pages_fast in
atomic_pte_lookup
I think the atomic_pte_lookup / non_atomic_pte_lookup helpers
should simply go away. Most of the setup code is common now and should
be in the caller where it can be shared. Then just do a:
if (atomic) {
__get_user_pages_fast()
} else {
get_user_pages_fast();
}
and we actually have an easy to understand piece of code.
Powered by blists - more mailing lists