]> 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 21:00:21 +0000 (23:00 +0200)
commit95f3908e441c2da33ad95df51f214d1b7ff5a283
tree542ca93175e77357432c6986e3e90b16f083d567
parentdb90debcc7fcb9b8d7f7207fac73c5ee76e053be
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