Using /proc/xen/xenbus can cause deadlocks on the atomic file position mutex since this file should behave like a character device and not a regular file. This is easiest to achive by making it a symlink to the existing /dev/xen/xenbus device.
This requires extending simple_fill_super() to add symlinks as well as regular files. David Changes in v4: - Switch on file type in simple_fill_super() - Make xen_xenus_fops and xen_privcmd_fops static - Rebased on v4.9-rc2. - Add patch from Seth for namespace support. Changes in v3: - Rebased on v4.7-rc5. Changes in v2: - Simplified simple_fill_super() change. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel