From: Jeff Layton Subject: bdi-default hung waiting for kthread_stop to finish Date: Thu, 2 Sep 2010 14:55:09 -0400 Message-ID: <20100902145509.28e4f998@tlielax.poochiereds.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit To: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Return-path: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org I was testing some cifs patches by running the fsstress program from LTP on a cifs mount on a very recent kernel. After running ~70 minutes or so, I got this in the ring buffer: INFO: task bdi-default:26 blocked for more than 120 seconds. "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. bdi-default D 0000000000000001 3256 26 2 0x00000000 ffff88003e789c60 0000000000000046 ffffffff00000000 00000000001d5180 00000000001d5180 ffff88003e782450 ffff88003e789fd8 00000000001d5180 00000000001d5180 00000000001d5180 00000000001d5180 ffff88003e789fd8 Call Trace: [] schedule_timeout+0x39/0xfe [] ? lock_acquired+0x1fd/0x20c [] ? lock_release+0x19a/0x1a6 [] ? trace_hardirqs_on+0xd/0xf [] wait_for_common+0xb0/0x10a [] ? default_wake_function+0x0/0x14 [] wait_for_completion+0x1d/0x1f [] kthread_stop+0x73/0xc2 [] bdi_forker_thread+0x38c/0x42a [] ? bdi_forker_thread+0x0/0x42a [] kthread+0x9d/0xa5 [] kernel_thread_helper+0x4/0x10 [] ? restore_args+0x0/0x30 [] ? kthread+0x0/0xa5 [] ? kernel_thread_helper+0x0/0x10 I'm assuming that it's waiting on flush-* to exit. The problem is that all of the ones that I see on the box just seem to be sitting there idle. Here's the one for cifs, but the others seem to be sitting in exactly the same spot: flush-cifs-2 S 0000000000000003 6512 8398 2 0x00000000 ffff880007f41e20 0000000000000046 ffff880007f41d90 00000000001d5180 00000000001d5180 ffff88003bcec8a0 ffff880007f41fd8 00000000001d5180 00000000001d5180 00000000001d5180 00000000001d5180 ffff880007f41fd8 Call Trace: [] bdi_writeback_thread+0x14f/0x211 [] ? bdi_writeback_thread+0x0/0x211 [] kthread+0x9d/0xa5 [] kernel_thread_helper+0x4/0x10 [] ? restore_args+0x0/0x30 [] ? kthread+0x0/0xa5 [] ? kernel_thread_helper+0x0/0x10 Stuff like statfs() and readdir() to the cifs mount seems to be fine, but writeback seems to be frozen. 2.6.36-0.14.rc3.git0.fc15.x86_64 The machine is a KVM guest. The fsstress command is: # fsstress -d /mnt/cifs/fsstress -l0 -n 1000 -p 8 Let me know if other info would be helpful in tracking this down. -- Jeff Layton