Re: [PATCH] md: use a mutex to protect a global list

2016-06-09 Thread Shaohua Li
On Wed, Jun 08, 2016 at 09:20:16AM -0700, Cong Wang wrote: > We saw a list corruption in the list all_detected_devices: > > WARNING: CPU: 16 PID: 226 at lib/list_debug.c:29 __list_add+0x3c/0xa9() > list_add corruption. next->prev should be prev (880859d58320), but was > 880859ce74c0. (n

[PATCH] md: use a mutex to protect a global list

2016-06-08 Thread Cong Wang
We saw a list corruption in the list all_detected_devices: WARNING: CPU: 16 PID: 226 at lib/list_debug.c:29 __list_add+0x3c/0xa9() list_add corruption. next->prev should be prev (880859d58320), but was 880859ce74c0. (next=81abfdb0). Modules linked in: ahci libahci libata sd_mod