diff options
author | Al Viro | 2017-12-25 19:43:35 -0500 |
---|---|---|
committer | Al Viro | 2018-01-05 11:54:37 -0500 |
commit | 36735a6a2b5e042db1af956ce4bcc13f3ff99e21 (patch) | |
tree | ce8d6eddf34be533c2c12d6f68f916b9fb3dd035 /kernel/bpf | |
parent | a713fd7f529e361d42aa9dcc511e3fd3016599fe (diff) |
mqueue: switch to on-demand creation of internal mount
Instead of doing that upon each ipcns creation, we do that the first
time mq_open(2) or mqueue mount is done in an ipcns. What's more,
doing that allows to get rid of mount_ns() use - we can go with
considerably cheaper mount_nodev(), avoiding the loop over all
mqueue superblock instances; ipcns->mq_mnt is used to locate preexisting
instance in O(1) time instead of O(instances) mount_ns() would've
cost us.
Based upon the version by Giuseppe Scrivano <gscrivan@redhat.com>; I've
added handling of userland mqueue mounts (original had been broken in
that area) and added a switch to mount_nodev().
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'kernel/bpf')
0 files changed, 0 insertions, 0 deletions