summaryrefslogtreecommitdiff
path: root/sound/x86
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-12-26 03:43:35 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2018-01-05 19:54:37 +0300
commit36735a6a2b5e042db1af956ce4bcc13f3ff99e21 (patch)
treece8d6eddf34be533c2c12d6f68f916b9fb3dd035 /sound/x86
parenta713fd7f529e361d42aa9dcc511e3fd3016599fe (diff)
downloadlinux-36735a6a2b5e042db1af956ce4bcc13f3ff99e21.tar.xz
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 'sound/x86')
0 files changed, 0 insertions, 0 deletions