Re: [PATCH 2/3] btrfs: keep sysfs target add in the last

2016-05-01 Thread Anand Jain
On 04/26/2016 12:23 AM, David Sterba wrote: On Thu, Mar 24, 2016 at 06:48:13PM +0800, Anand Jain wrote: Sysfs create context should come in the last, so that we don't have to undo sysfs operation for the reason that any other operation has failed. Moving the sysfs call will make a visible

Re: [PATCH 2/3] btrfs: keep sysfs target add in the last

2016-04-25 Thread David Sterba
On Thu, Mar 24, 2016 at 06:48:13PM +0800, Anand Jain wrote: > Sysfs create context should come in the last, so that we > don't have to undo sysfs operation for the reason that any > other operation has failed. Moving the sysfs call will make a visible change: in the old code, the sysfs node

[PATCH 2/3] btrfs: keep sysfs target add in the last

2016-03-24 Thread Anand Jain
Sysfs create context should come in the last, so that we don't have to undo sysfs operation for the reason that any other operation has failed. Signed-off-by: Anand Jain --- fs/btrfs/dev-replace.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git