How to stop kernel ext4 journaling thread so I can run fsck?



Recently I wanted to manually run fsck on /home, so
I unmounted it (successfully). But fsck claimed the
device was busy! So it was, by a kernel thread. You
can't kill -9 those. Shouldn't such threads stop when the
associated device is unmounted? If not, how does one
stop it (or better, how should one run fsck on an ext4 FS)?

What I ended up doing was:

# touch /forcefsck; reboot

But is this a ext4 and/or kernel bug, or have I missed something?
Here's my system info, if it helps (Note I have remounted /home):

$ mount |grep sda5
/dev/sda5 on /home type ext4
(rw,nodev,relatime,seclabel,user_xattr,acl,barrier=1,data=ordered,usrquota)
$ ps -ef | grep sda5
root 626 2 0 01:01 ? 00:00:00 [jbd2/sda5-8]
$ rpm -q e2fsprogs
e2fsprogs-1.41.14-2.fc15.i686
$ uname -a
Linux XXXXXX 3.3.7-1.fc16.i686.PAE #1 SMP Tue May 22 14:07:22 UTC 2012 i686 i686 i386
GNU/Linux
$ lsb_release -a
LSB Version: :core-4.0-ia32:core-4.0-noarch
Distributor ID: Fedora
Description: Fedora release 16 (Verne)
Release: 16
Codename: Verne

--
Wayne
.



Relevant Pages

  • Re: 2.6.27 & ext4 strangeness
    ... reboot and force an fsck? ... This has all of the ext4 fixes that is in the latest mainline, ... on the 2.6.28 kernel. ... I've not been able to reproduce this yet but when it happens again I ...
    (Linux-Kernel)
  • Re: ATA problems(unlean fs) on recent cvsup
    ... Sorry to do a me too, but I have a similar problem after a cvsup midday ... The previous kernel was pre-ATAng. ... me in single user after failing to automatically run fsck. ... SMM does not respond, resetting ...
    (freebsd-current)
  • Re: FSCK message suppressed during booting? (2.6.9-rc2)
    ... >> Debian with my own updated kernel 2.4.2x series for a few years now. ... I will get in contact with fsck ... > I will check with the maintainer of Debian package further. ...
    (Linux-Kernel)
  • Re: [SLE] PC Crash: Hard Disk Problems
    ... >> The kernel has much cached file system information in RAM. ... > track of what fsck is doing, update or flush or empty buffers as ... > appropriate, and conversely, be able to write to disk whatever the ...
    (SuSE)
  • Re: FreeBSD/Current: As of 2004/05/08 at 11:00am EST - FSCK lockup
    ... > kernel debugger, no network, no disk) running fsck. ... >usb0: USB revision 1.0 ... >SMP: AP CPU #3 Launched! ...
    (freebsd-current)