fs: dlm: add pid to debug log
authorAlexander Aring <aahringo@redhat.com>
Wed, 22 Jun 2022 18:45:06 +0000 (14:45 -0400)
committerDavid Teigland <teigland@redhat.com>
Thu, 23 Jun 2022 19:41:39 +0000 (14:41 -0500)
This patch adds the pid information which requested the lock operation
to the debug log output.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/plock.c

index 7cab5d2..59113d6 100644 (file)
@@ -163,9 +163,9 @@ int dlm_posix_lock(dlm_lockspace_t *lockspace, u64 number, struct file *file,
                spin_lock(&ops_lock);
                list_del(&op->list);
                spin_unlock(&ops_lock);
-               log_print("%s: wait interrupted %x %llx, op removed",
+               log_print("%s: wait interrupted %x %llx pid %d, op removed",
                          __func__, ls->ls_global_id,
-                         (unsigned long long)number);
+                         (unsigned long long)number, op->info.pid);
                dlm_release_plock_op(op);
                do_unlock_close(ls, number, file, fl);
                goto out;