From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shaohua Li Subject: Re: [PATCH V3][for-next] mm: add a new vector based madvise syscall Date: Tue, 8 Dec 2015 09:38:26 -0800 Message-ID: <20151208173825.GA1351950@devbig084.prn1.facebook.com> References: <7c6ce0f1fe29fc22faf72134f4e2674da8d3d149.1449532062.git.shli@fb.com> <20151208061807.GO15533@two.firstfloor.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Return-path: Content-Disposition: inline In-Reply-To: <20151208061807.GO15533@two.firstfloor.org> Sender: owner-linux-mm@kvack.org To: Andi Kleen Cc: linux-mm@kvack.org, linux-api@vger.kernel.org, Kernel-team@fb.com, Andrew Morton , Rik van Riel , Mel Gorman , Hugh Dickins , Johannes Weiner , Andrea Arcangeli , Minchan Kim List-Id: linux-api@vger.kernel.org On Tue, Dec 08, 2015 at 07:18:08AM +0100, Andi Kleen wrote: > > + if (behavior != MADV_DONTNEED && behavior != MADV_FREE) > > + return -EINVAL; > > This limitations is kind of lame and makes it a special purpose hack. > > It will also cause backwards compatibility issues if it needs > to be extended later. > > How hard would it be to support all of madvise vectored? > > That would also give much cleaner documentation. Ok, I'll add other behavior. Reducing syscall and mmap_sem locking is a win for other madvise. Thanks, Shaohua -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org