Thread (4 messages) 4 messages, 3 authors, 2015-12-08

Re: [PATCH V3][for-next] mm: add a new vector based madvise syscall

flat view

From: Shaohua Li <hidden>
Date: 2015-12-08 17:39:00
Also in: linux-mm

On Tue, Dec 08, 2015 at 07:18:08AM +0100, Andi Kleen wrote:
quoted
+	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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help