Re: [PATCH v8 1/2] btrfs: introduce device dynamic state transition to failed

2017-10-15 Thread Anand Jain
On 10/14/2017 02:47 AM, Liu Bo wrote: On Tue, Oct 03, 2017 at 11:59:19PM +0800, Anand Jain wrote: From: Anand Jain This patch provides helper functions to force a device to failed, and we need it for the following reasons, 1) a. It can be reported that device has failed when it does and

Re: [PATCH v8 1/2] btrfs: introduce device dynamic state transition to failed

2017-10-13 Thread Liu Bo
On Tue, Oct 03, 2017 at 11:59:19PM +0800, Anand Jain wrote: > From: Anand Jain > > This patch provides helper functions to force a device to failed, > and we need it for the following reasons, > 1) a. It can be reported that device has failed when it does and >b. Close the device when it goes

[PATCH v8 1/2] btrfs: introduce device dynamic state transition to failed

2017-10-03 Thread Anand Jain
From: Anand Jain This patch provides helper functions to force a device to failed, and we need it for the following reasons, 1) a. It can be reported that device has failed when it does and b. Close the device when it goes offline so that blocklayer can cleanup 2) Identify the candidate