[PATCH] autofs: add pid/comm to debug on autofs_notify_daemon

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  This can be useful for troubleshooting purposes and this information
  is not directly avalaible to userland

Signed-off-by: Roberto Bergantinos Corpas <rbergant@xxxxxxxxxx>
---
 fs/autofs/waitq.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/fs/autofs/waitq.c b/fs/autofs/waitq.c
index b04c528b19d3..1a151a3b7d8b 100644
--- a/fs/autofs/waitq.c
+++ b/fs/autofs/waitq.c
@@ -88,9 +88,10 @@ static void autofs_notify_daemon(struct autofs_sb_info *sbi,
 	size_t pktsz;
 	int ret;
 
-	pr_debug("wait id = 0x%08lx, name = %.*s, type=%d\n",
+	pr_debug("wait id = 0x%08lx, name = %.*s, type=%d, requested by (%d/%s)\n",
 		 (unsigned long) wq->wait_queue_token,
-		 wq->name.len, wq->name.name, type);
+		 wq->name.len, wq->name.name, type,
+		 wq->pid, current->comm);
 
 	memset(&pkt, 0, sizeof(pkt)); /* For security reasons */
 
-- 
2.21.0




[Index of Archives]     [Linux Filesystem Development]     [Linux Ext4]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux