Re: fcntl(2) F_READAHEAD set to zero doesn't work [patch]

2013-02-10 Thread Konstantin Belousov
On Fri, Feb 08, 2013 at 04:58:09PM -0700, Ian Lepore wrote: > I discovered today that fcntl(fd, F_READAHEAD, 0) doesn't work as > advertised. It's supposed to disable readahead, but instead it restores > the default readahead behavior (if it had previously been changed), and > there is no way to d

fcntl(2) F_READAHEAD set to zero doesn't work [patch]

2013-02-08 Thread Ian Lepore
I discovered today that fcntl(fd, F_READAHEAD, 0) doesn't work as advertised. It's supposed to disable readahead, but instead it restores the default readahead behavior (if it had previously been changed), and there is no way to disable readahead.[1] I think the attached patch fixes it, but it's