Re: [PATCH i-g-t] lib: Do two writes to /proc/sys/vm/drop_caches again

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 27, 2016 at 12:22:12PM +0300, Petri Latvala wrote:
> The drop_caches sysctl has a max value of 4, so writing 7 to it just
> fails. Avoid the earlier two-writes problem by opening the fd twice.
> 
> v2: Don't lseek(), open() twice. (Chris)
> 
> Signed-off-by: Petri Latvala <petri.latvala@xxxxxxxxx>

Thanks, pushed. The sysctl being a bitmask and not accepting the full
range is a bit surprising.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux