livelock on MD RAID5

2 messages, 1 author, 2015-01-22 · open the first message on its own page

livelock on MD RAID5

From: Mikulas Patocka <mpatocka@redhat.com>
Date: 2015-01-20 03:24:25

Hi Neil

I saw your patch "md/raid5: avoid livelock caused by non-aligned writes". 
That patch is only for RAID 6, but we are seeing similar livelock on RAID5 
(mdX_raid5 is constantly looping in 
raid5d/handle_active_stripes/handle_stripe/ops_run_io and some submitted 
bios get stuck). The livelock happens when we issue I/O and simulate disk 
failure.

Do you think that the same issue could happen on RAID5 too?

Do you think that the patch "md/raid5: fetch_block must fetch all the 
blocks handle_stripe_dirtying wants." could fix it?

Mikulas

Re: [dm-devel] livelock on MD RAID5

From: Mikulas Patocka <mpatocka@redhat.com>
Date: 2015-01-22 05:00:15


On Mon, 19 Jan 2015, Mikulas Patocka wrote:
Hi Neil

I saw your patch "md/raid5: avoid livelock caused by non-aligned writes". 
That patch is only for RAID 6, but we are seeing similar livelock on RAID5 
(mdX_raid5 is constantly looping in 
raid5d/handle_active_stripes/handle_stripe/ops_run_io and some submitted 
bios get stuck). The livelock happens when we issue I/O and simulate disk 
failure.

Do you think that the same issue could happen on RAID5 too?

Do you think that the patch "md/raid5: fetch_block must fetch all the 
blocks handle_stripe_dirtying wants." could fix it?

Mikulas
So, we verified that this RAID5 livelock was introduced in patch 
67f455486d2ea20b2d94d6adf5b9b783d079e321. A patch 
a40687ff73a5b14909d6aa522f7d778b158911c5 fixes a livelock in RAID6, but a 
similar livelock was introduced in RAID5, that is still unfixed upstream.

Mikulas
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help