If a cgroup is deleted or chmoded using the underlying cgroupfs, then we
want to minimize the amount of time during which we get stale info. At the
same time, we don't want to do away with caching in the fuse kernel module
altogether, since calling out to userspace is expensive.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
}
ret = cgfs_create(controller, cgroup, fc->uid, fc->gid);
+ printf("cgfs_create returned %d for %s %s\n", ret, controller, cgroup);
out:
free(cgdir);
newargv[cnt++] = argv[0];
newargv[cnt++] = "-f";
newargv[cnt++] = "-o";
- newargv[cnt++] = "allow_other,direct_io";
+ newargv[cnt++] = "allow_other,direct_io,entry_timeout=0.5,attr_timeout=0.5";
newargv[cnt++] = argv[1];
newargv[cnt++] = NULL;