Re: [RFC PATCH] ipc, mqueue: lazy call kern_mount_data in new namespaces

From: Giuseppe Scrivano
Date: Wed Nov 29 2017 - 05:33:40 EST


Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> writes:

> OK, but this simply moves the expense so it happens later on. Why is
> that better?

the optimization is for new IPC namespaces that don't use mq_open. In
this case there won't be any kern_mount_data cost at all.

Regards,
Giuseppe