[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180522102000.GA20067@infradead.org>
Date: Tue, 22 May 2018 03:20:00 -0700
From: Christoph Hellwig <hch@...radead.org>
To: Benjamin Herrenschmidt <benh@...nel.crashing.org>
Cc: Al Viro <viro@...IV.linux.org.uk>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-kernel@...r.kernel.org
Subject: Re: set_fs(KERNEL_DS) vs iovec
On Tue, May 22, 2018 at 03:08:35PM +1000, Benjamin Herrenschmidt wrote:
> Hence my question: Is is still acceptable these days to use
> set_fs(KERNEL_DS) for simple cases like this ?
Not at all.
> Or is it really
> deprecated and all new users should use the iovec's ?
Yes, please use iov_iter. It should actually make your code simpler,
too.
Powered by blists - more mailing lists