Skip to content

passthrough: open mountinfo proc file in case we readlly need

Hao Xu requested to merge HowHsu/virtiofsd:remove_mount into main

We observe overhead on namespace_lock in high desity high concurrency situation. And that's from a bounch of mount(lock writer) at short time and a bunch of open(/proc/self/mountinfo) (lock reader). Since we only need /proc/self/mountinfo when we use file handle. Let's avoid doing it in InodeFileHandlesMode::Never.

Signed-off-by: Hao Xu howeyxu@tencent.com

Merge request reports