linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Stopping raid6 (with journal) hangs w/ 100%CPU
@ 2017-11-23 18:22 Larkin Lowrey
  2017-11-24 19:20 ` Larkin Lowrey
  0 siblings, 1 reply; 6+ messages in thread
From: Larkin Lowrey @ 2017-11-23 18:22 UTC (permalink / raw)
  To: linux-raid

Sometimes, stopping a raid6 array (with journal) hangs, the mdX_raid6 
process pegs at 100% CPU, and there is no I/O. Looks like it's stuck in 
an infinite loop.

Kernel: 4.13.13-200.fc26.x86_64

The stack trace (echo l > /proc/sysrq-trigger) is always the same:

> handle_stripe+0x10c/0x2140 [raid456]
> ? pick_next_task_fair+0x491/0x550
> handle_active_stripes.isra.60+0x3e5/0x5a0 [raid456]
> raid5d+0x42e/0x630 [raid456]
> ? prepare_to_wait_event+0x79/0x160
> md_thread+0x125/0x170
> ? md_thread+0x125/0x170
> ? finish_wait+0x80/0x80
> kthread+0x125/0x140
> ? state_show+0x2f0/0x2f0
> ? kthread_park+0x60/0x60
> ? do_syscall_64+0x67/0x140
> ret_from_fork+0x25/0x30

The array is healthy, has a journal, and writes were idle for several 
minutes prior to running 'mdadm --stop'.

> md124 : active raid6 sdt1[6] sds1[5] sdw1[1] sdx1[2] sdy1[3] sdu1[7] 
> sdv1[8] sdz1[4] md125p4[9](J)
>       23442092928 blocks super 1.2 level 6, 64k chunk, algorithm 2 
> [8/8] [UUUUUUUU]

stripe_cache_active: 2
stripe_cache_size: 32768
array_state: write-pending
journal_mode: write-through [write-back]
consistency_policy: journal

--Larkin


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-12-03 21:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-23 18:22 Stopping raid6 (with journal) hangs w/ 100%CPU Larkin Lowrey
2017-11-24 19:20 ` Larkin Lowrey
2017-11-28  2:42   ` Larkin Lowrey
2017-11-30 16:22     ` Larkin Lowrey
2017-12-01 20:34       ` Shaohua Li
2017-12-03 21:58         ` Larkin Lowrey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).