submit_bio() flush to disk immediately
Prashant Shah
pshah.mumbai at gmail.com
Tue Aug 6 06:50:56 EDT 2013
Hi,
On Tue, Aug 6, 2013 at 4:14 PM, Rajat Sharma <fs.rajat at gmail.com> wrote:
> sync does not purge page-cache. I think you need to place some
> filesystem hooks to purge-cache and make sure nobody else reads the
> file while you update the block, because it will again populate
> filesystem page-cache. Purging cache might be tricky.
This does the trick on the user side but for once only. I want to do
something similar just after the bio write within the module itself.
echo 1 > /proc/sys/vm/drop_caches
More information about the Kernelnewbies
mailing list