[PATCH] md: print correct pid for newly created bitmap-writeback-daemon.
authorNeilBrown <neilb@cse.unsw.edu.au>
Wed, 22 Jun 2005 00:17:17 +0000 (17:17 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 22 Jun 2005 02:07:44 +0000 (19:07 -0700)
The debugging message printed the wrong pid, which didn't help remove bugs....

Signed-off-by: Neil Brown <neilb@cse.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/bitmap.c

index b43bdb2..c43fd03 100644 (file)
@@ -1112,7 +1112,7 @@ static int bitmap_start_daemon(struct bitmap *bitmap, mdk_thread_t **ptr,
        md_wakeup_thread(daemon); /* start it running */
 
        PRINTK("%s: %s daemon (pid %d) started...\n",
-               bmname(bitmap), name, bitmap->daemon->tsk->pid);
+               bmname(bitmap), name, daemon->tsk->pid);
 out_unlock:
        spin_unlock_irqrestore(&bitmap->lock, flags);
        return 0;