]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-handler: replace fuser by /proc/net/unix
authorDimitri Savineau <dsavinea@redhat.com>
Thu, 6 Jun 2019 18:08:18 +0000 (14:08 -0400)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 12 Jun 2019 17:31:21 +0000 (19:31 +0200)
commitda9891da1e8b9a8c91077c74e54a9df8ebb7070d
tree6c1d5883cc86898e62535dff6c792bed06c087b9
parent905c2256bdf16fe19aa6e5ead641a30ee559f27d
ceph-handler: replace fuser by /proc/net/unix

We're using fuser command to see if a process is using a ceph unix
socket file. But the fuser command runs through every PID present in
/proc/<PID> to see if one of them is using the file.
On a system running thousands processes, the fuser command can take
a long time to finish.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1717011

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
roles/ceph-handler/tasks/check_socket_non_container.yml