diff options
Diffstat (limited to 'nfs')
-rw-r--r-- | nfs/cache.c | 2 | ||||
-rw-r--r-- | nfs/rpc.c | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/nfs/cache.c b/nfs/cache.c index 883cb966..a1661b80 100644 --- a/nfs/cache.c +++ b/nfs/cache.c @@ -106,6 +106,8 @@ void * forked_node_delete (void *arg) { struct fnd *args = arg; + + pthread_setname_np (pthread_self (), "node_delete"); pthread_mutex_lock (&args->dir->lock); netfs_attempt_unlink ((struct iouser *)-1, args->dir, args->name); @@ -36,6 +36,7 @@ #include <error.h> #include <unistd.h> #include <stdio.h> +#include <pthread.h> /* One of these exists for each pending RPC. */ struct rpc_list @@ -354,6 +355,8 @@ timeout_service_thread (void *arg) { (void) arg; + pthread_setname_np (pthread_self (), "timeout"); + while (1) { sleep (1); @@ -374,6 +377,8 @@ rpc_receive_thread (void *arg) (void) arg; + pthread_setname_np (pthread_self (), "rpc_receive"); + /* Allocate a receive buffer. */ buf = malloc (1024 + read_size); assert_backtrace (buf); |