Whamcloud - gitweb
- change the OST / MDT thread names to also include the host pid
authorbraam <braam>
Sun, 10 Nov 2002 08:34:42 +0000 (08:34 +0000)
committerbraam <braam>
Sun, 10 Nov 2002 08:34:42 +0000 (08:34 +0000)
  in case of UML to aid debugging.

lustre/ldlm/ldlm_lockd.c
lustre/mds/handler.c
lustre/ost/ost_handler.c
lustre/ptlrpc/service.c

index dc5bc64..3319f03 100644 (file)
@@ -621,7 +621,7 @@ static int ldlm_setup(struct obd_device *obddev, obd_count len, void *buf)
 
         for (i = 0; i < LDLM_NUM_THREADS; i++) {
                 char name[32];
-                sprintf(name, "lustre_dlm_%02d", i);
+                sprintf(name, "ldlm_%02d", i);
                 rc = ptlrpc_start_thread(obddev, ldlm->ldlm_cancel_service,
                                          name);
                 if (rc) {
@@ -633,7 +633,7 @@ static int ldlm_setup(struct obd_device *obddev, obd_count len, void *buf)
 
         for (i = 0; i < LDLM_NUM_THREADS; i++) {
                 char name[32];
-                sprintf(name, "lustre_dlm_%02d", i);
+                sprintf(name, "ldlm_%02d", i);
                 rc = ptlrpc_start_thread(obddev, ldlm->ldlm_cb_service, name);
                 if (rc) {
                         CERROR("cannot start LDLM thread #%d: rc %d\n", i, rc);
index 7f34755..90060cf 100644 (file)
@@ -1489,7 +1489,7 @@ static int mdt_setup(struct obd_device *obddev, obd_count len, void *buf)
 
         for (i = 0; i < MDT_NUM_THREADS; i++) {
                 char name[32];
-                sprintf(name, "lustre_MDT_%02d", i);
+                sprintf(name, "ll_mdt_%02d", i);
                 rc = ptlrpc_start_thread(obddev, mds->mds_service, name);
                 if (rc) {
                         CERROR("cannot start MDT thread #%d: rc %d\n", i, rc);
index e1bbaec..de4414a 100644 (file)
@@ -620,7 +620,7 @@ static int ost_setup(struct obd_device *obddev, obd_count len, void *buf)
 
         for (i = 0; i < OST_NUM_THREADS; i++) {
                 char name[32];
-                sprintf(name, "lustre_ost_%02d", i);
+                sprintf(name, "ll_ost_%02d", i);
                 err = ptlrpc_start_thread(obddev, ost->ost_service, name);
                 if (err) {
                         CERROR("error starting thread #%d: rc %d\n", i, err);
index e80a8de..5e6a626 100644 (file)
@@ -249,7 +249,12 @@ static int ptlrpc_main(void *arg)
         spin_unlock_irq(&current->sigmask_lock);
 #endif
 
+#ifdef __arch_um__
+        sprintf(current->comm, "%s|%d", 
+                data->name, current->thread.extern_pid);
+#else
         strcpy(current->comm, data->name);
+#endif
         unlock_kernel();
 
         OBD_ALLOC(event, sizeof(*event));