]> git-server-git.apps.pok.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 21:00:36 +0000 (23:00 +0200)
commit3815add5340a60f69cdb00f03f5b1f1b53c22bb2
tree2bfb4e3baa9f8551df32c30fcfc791f3c9af6952
parent053ab50f69f053be0a2150cc3788b81d0fb86ec5
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>
(cherry picked from commit da9891da1e8b9a8c91077c74e54a9df8ebb7070d)
roles/ceph-handler/tasks/check_socket_non_container.yml