Re: 3.2-rc4: scrubbing locks up the kernel, then hung tasks on boot
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Date: 2012-03-18 00:37:08
On Sat, Mar 17, 2012 at 10:43:25AM +0100, Martin Steigerwald wrote:
Hi Greg, Chris, Arne, hi everyone, =20 Am Freitag, 16. M=C3=A4rz 2012 schrieb Martin Steigerwald:quoted
Am Donnerstag, 15. M=C3=A4rz 2012 schrieb Chris Mason:quoted
On Thu, Mar 15, 2012 at 06:32:19PM +0100, Martin Steigerwald wrot=
e:
quoted
quoted
quoted
Am Samstag, 25. Februar 2012 schrieb Arne Jansen:quoted
On 02/24/12 16:51, Martin Steigerwald wrote:quoted
Am Samstag, 21. Januar 2012 schrieb Martin Steigerwald:quoted
Am Samstag, 21. Januar 2012 schrieb Martin Steigerwald:quoted
I still have this with 3.2.0-1-pae - which is a debian ke=
rnel
quoted
quoted
quoted
quoted
quoted
quoted
quoted
based on 3.2.1. =20 When I do btrfs scrub start / the machine locks immediate=
ly
quoted
quoted
quoted
quoted
quoted
quoted
quoted
up hard. =20 Then usually on next boot it stops on space_cache enabled message, but not the one for /, but the one for /home wh=
ich
quoted
quoted
quoted
quoted
quoted
quoted
quoted
is mounted later.=20 [=E2=80=A6] =20quoted
quoted
quoted
quoted
quoted
I now tested scrubbing /home which is a different BTRFS filesystem on the same machine. =20 Then the scrub is started, scrub status tells me so, but nothing happens, no block in/out activity in vmstat, no CP=
U
quoted
quoted
quoted
quoted
quoted
quoted
related activity in top. =20 btrfs scrub cancel then hangs, but not the complete machin=
e,
quoted
quoted
quoted
quoted
quoted
quoted
only the process. =20 I had this once on my T520 with the internal Intel SSD 320=
as
quoted
quoted
quoted
quoted
quoted
quoted
well. The other time it worked. =20 Well maybe that is due to BTRFS doing something else on my=
T23
quoted
quoted
quoted
quoted
quoted
quoted
now: =20 deepdance:~> ps aux | grep ino-cache | grep -v grep root 1992 5.5 0.0 0 0 ? D 12:15 =
=20
quoted
quoted
quoted
quoted
quoted
quoted
0:09 [btrfs- ino-cache]=20 [=E2=80=A6] =20quoted
quoted
quoted
quoted
quoted
At least it doesn=C2=B4t lock up hard, so there might real=
ly be
quoted
quoted
quoted
quoted
quoted
quoted
something strange with /.=20 FWIW a btrfs filesystem balance / does work. After this a b=
trfs
quoted
quoted
quoted
quoted
quoted
scrub start / still locks the kernel.=20 Hi Martin, =20 I just sent 2 patches to the list. Could you please test if t=
hese
quoted
quoted
quoted
quoted
fix your problem with scrub?=20 I didn=C2=B4t yet test it but I tried the first balance then sc=
rub stuff
quoted
quoted
=20quoted
again:Looks like you're on a 32 bit machine. The current for-linus bra=
nch
quoted
quoted
has an important fix for scrub on 32 bit that should solve this.=20 So finally - the machine did make-kpkg over night and complained ab=
out
quoted
missing Documentation lguest, then I switched off lots from distro default config and just did the usual make stuff - I was able to sc=
rub
quoted
both partitions on that ThinkPad T23: =20 deepdance:~> btrfs scrub status / scrub status for 2bf5b1dc-1d89-4f0d-a561-1a5551a27275 scrub started at Fri Mar 16 11:56:12 2012 and finished afte=
r
quoted
741 seconds total bytes scrubbed: 9.62GB with 0 errors =20 deepdance:~> btrfs scrub status /home scrub status for a600de65-e1ab-4cbf-b150-bbaeaf9fa98d scrub started at Fri Mar 16 12:00:31 2012 and finished afte=
r
quoted
1708 seconds total bytes scrubbed: 36.63GB with 0 errors =20 Thanks a lot for fixing this. =20 Tested-by: Martin Steigerwald <redacted>[=E2=80=A6] =20 Would that patch =20 Btrfs: fix casting error in scrub reada code =20 http://git.kernel.org/?p=3Dlinux/kernel/git/mason/linux- btrfs.git;a=3Dcommit;h=3Da175423c831ea582c06784d1e172d2ce1d79923a =20 (sorry for line break. KMail insists on it even when I disable line b=
reaks=20
due to the minus sign in the URL.) =20 that I tested above be something for stable?
<formletter> This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read Documentation/stable_kernel_rules.txt for how to do this properly. </formletter> -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" = in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html