diff options
| author | Al Viro <[email protected]> | 2017-12-26 00:43:35 +0000 |
|---|---|---|
| committer | Al Viro <[email protected]> | 2018-01-05 16:54:37 +0000 |
| commit | 36735a6a2b5e042db1af956ce4bcc13f3ff99e21 (patch) | |
| tree | ce8d6eddf34be533c2c12d6f68f916b9fb3dd035 /net/tipc | |
| parent | tidy do_mq_open() up a bit (diff) | |
| download | kernel-36735a6a2b5e042db1af956ce4bcc13f3ff99e21.tar.gz kernel-36735a6a2b5e042db1af956ce4bcc13f3ff99e21.zip | |
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 <[email protected]>; 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 <[email protected]>
Diffstat (limited to 'net/tipc')
0 files changed, 0 insertions, 0 deletions
