Re: [PATCH 07/16] btrfs: add proper safety check before resuming dev-replace

2018-04-09 Thread David Sterba
On Sat, Apr 07, 2018 at 06:43:19PM +0800, Anand Jain wrote: > On 04/07/2018 02:42 PM, Anand Jain wrote: > > On 04/04/2018 02:34 AM, David Sterba wrote: > >> The device replace is paused by unmount or read only remount, and > >> resumed on next mount or write remount. > >> > >> The exclusive status

Re: [PATCH 07/16] btrfs: add proper safety check before resuming dev-replace

2018-04-07 Thread Anand Jain
On 04/07/2018 02:42 PM, Anand Jain wrote: On 04/04/2018 02:34 AM, David Sterba wrote: The device replace is paused by unmount or read only remount, and resumed on next mount or write remount. The exclusive status should be checked properly as it's a global invariant and we must not allow 2

Re: [PATCH 07/16] btrfs: add proper safety check before resuming dev-replace

2018-04-07 Thread Anand Jain
On 04/04/2018 02:34 AM, David Sterba wrote: The device replace is paused by unmount or read only remount, and resumed on next mount or write remount. The exclusive status should be checked properly as it's a global invariant and we must not allow 2 operations run. In this case, the balance

Re: [PATCH 07/16] btrfs: add proper safety check before resuming dev-replace

2018-04-06 Thread Sasha Levin
Hi, [This is an automated email] This commit has been processed by the -stable helper bot and determined to be a high probability candidate for -stable trees. (score: 34.4419) The bot has tested the following trees: v4.16, v4.15.15, v4.14.32, v4.9.92, v4.4.126. v4.16: Build OK! v4.15.15:

[PATCH 07/16] btrfs: add proper safety check before resuming dev-replace

2018-04-03 Thread David Sterba
The device replace is paused by unmount or read only remount, and resumed on next mount or write remount. The exclusive status should be checked properly as it's a global invariant and we must not allow 2 operations run. In this case, the balance can be also paused and resumed under same