Re: [PATCH RFC v2 0/2] readmirror feature

2019-09-24 Thread Anand Jain
On 9/16/19 4:19 PM, Anand Jain wrote: On 12/9/19 6:13 PM, Josef Bacik wrote: On Thu, Sep 12, 2019 at 06:10:08PM +0800, Anand Jain wrote: On 12 Sep 2019, at 6:03 PM, Josef Bacik wrote: On Thu, Sep 12, 2019 at 06:00:21PM +0800, Anand Jain wrote: On 12 Sep 2019, at 5:50 PM, Josef Bacik w

Re: [PATCH RFC v2 0/2] readmirror feature

2019-09-16 Thread Anand Jain
On 12/9/19 6:13 PM, Josef Bacik wrote: On Thu, Sep 12, 2019 at 06:10:08PM +0800, Anand Jain wrote: On 12 Sep 2019, at 6:03 PM, Josef Bacik wrote: On Thu, Sep 12, 2019 at 06:00:21PM +0800, Anand Jain wrote: On 12 Sep 2019, at 5:50 PM, Josef Bacik wrote: On Thu, Sep 12, 2019 at 03:41:42

Re: [PATCH RFC v2 0/2] readmirror feature

2019-09-12 Thread Josef Bacik
On Thu, Sep 12, 2019 at 06:10:08PM +0800, Anand Jain wrote: > > > > On 12 Sep 2019, at 6:03 PM, Josef Bacik wrote: > > > > On Thu, Sep 12, 2019 at 06:00:21PM +0800, Anand Jain wrote: > >> > >> > >>> On 12 Sep 2019, at 5:50 PM, Josef Bacik wrote: > >>> > >>> On Thu, Sep 12, 2019 at 03:41:42P

Re: [PATCH RFC v2 0/2] readmirror feature

2019-09-12 Thread Anand Jain
> On 12 Sep 2019, at 6:03 PM, Josef Bacik wrote: > > On Thu, Sep 12, 2019 at 06:00:21PM +0800, Anand Jain wrote: >> >> >>> On 12 Sep 2019, at 5:50 PM, Josef Bacik wrote: >>> >>> On Thu, Sep 12, 2019 at 03:41:42PM +0800, Anand Jain wrote: Thanks for the comments. More below

Re: [PATCH RFC v2 0/2] readmirror feature

2019-09-12 Thread Josef Bacik
On Thu, Sep 12, 2019 at 06:00:21PM +0800, Anand Jain wrote: > > > > On 12 Sep 2019, at 5:50 PM, Josef Bacik wrote: > > > > On Thu, Sep 12, 2019 at 03:41:42PM +0800, Anand Jain wrote: > >> > >> > >> Thanks for the comments. More below. > >> > >> On 12/9/19 3:16 AM, Josef Bacik wrote: > >>> On

Re: [PATCH RFC v2 0/2] readmirror feature

2019-09-12 Thread Anand Jain
> On 12 Sep 2019, at 5:50 PM, Josef Bacik wrote: > > On Thu, Sep 12, 2019 at 03:41:42PM +0800, Anand Jain wrote: >> >> >> Thanks for the comments. More below. >> >> On 12/9/19 3:16 AM, Josef Bacik wrote: >>> On Wed, Sep 11, 2019 at 03:13:21PM -0400, Eli V wrote: On Wed, Sep 11, 2019 at

Re: [PATCH RFC v2 0/2] readmirror feature

2019-09-12 Thread Josef Bacik
On Thu, Sep 12, 2019 at 03:41:42PM +0800, Anand Jain wrote: > > > Thanks for the comments. More below. > > On 12/9/19 3:16 AM, Josef Bacik wrote: > > On Wed, Sep 11, 2019 at 03:13:21PM -0400, Eli V wrote: > > > On Wed, Sep 11, 2019 at 2:46 PM Josef Bacik wrote: > > > > > > > > On Mon, Aug 26,

Re: [PATCH RFC v2 0/2] readmirror feature

2019-09-12 Thread Anand Jain
On 12/9/19 12:37 AM, David Sterba wrote: On Mon, Aug 26, 2019 at 05:04:36PM +0800, Anand Jain wrote: Function call chain __btrfs_map_block()->find_live_mirror() uses thread pid to determine the %mirror_num when the mirror_num=0. This patch introduces a framework so that we can add policies to

Re: [PATCH RFC v2 0/2] readmirror feature

2019-09-12 Thread Anand Jain
Thanks for the comments. More below. On 12/9/19 3:16 AM, Josef Bacik wrote: On Wed, Sep 11, 2019 at 03:13:21PM -0400, Eli V wrote: On Wed, Sep 11, 2019 at 2:46 PM Josef Bacik wrote: On Mon, Aug 26, 2019 at 05:04:36PM +0800, Anand Jain wrote: Function call chain __btrfs_map_block()->find

Re: [PATCH RFC v2 0/2] readmirror feature

2019-09-11 Thread Josef Bacik
On Wed, Sep 11, 2019 at 03:13:21PM -0400, Eli V wrote: > On Wed, Sep 11, 2019 at 2:46 PM Josef Bacik wrote: > > > > On Mon, Aug 26, 2019 at 05:04:36PM +0800, Anand Jain wrote: > > > Function call chain __btrfs_map_block()->find_live_mirror() uses > > > thread pid to determine the %mirror_num when

Re: [PATCH RFC v2 0/2] readmirror feature

2019-09-11 Thread Eli V
On Wed, Sep 11, 2019 at 2:46 PM Josef Bacik wrote: > > On Mon, Aug 26, 2019 at 05:04:36PM +0800, Anand Jain wrote: > > Function call chain __btrfs_map_block()->find_live_mirror() uses > > thread pid to determine the %mirror_num when the mirror_num=0. > > > > This patch introduces a framework so t

Re: [PATCH RFC v2 0/2] readmirror feature

2019-09-11 Thread Josef Bacik
On Mon, Aug 26, 2019 at 05:04:36PM +0800, Anand Jain wrote: > Function call chain __btrfs_map_block()->find_live_mirror() uses > thread pid to determine the %mirror_num when the mirror_num=0. > > This patch introduces a framework so that we can add policies to determine > the %mirror_num. And als

Re: [PATCH RFC v2 0/2] readmirror feature

2019-09-11 Thread David Sterba
On Mon, Aug 26, 2019 at 05:04:36PM +0800, Anand Jain wrote: > Function call chain __btrfs_map_block()->find_live_mirror() uses > thread pid to determine the %mirror_num when the mirror_num=0. > > This patch introduces a framework so that we can add policies to determine > the %mirror_num. And als

[PATCH RFC v2 0/2] readmirror feature

2019-08-26 Thread Anand Jain
Function call chain __btrfs_map_block()->find_live_mirror() uses thread pid to determine the %mirror_num when the mirror_num=0. This patch introduces a framework so that we can add policies to determine the %mirror_num. And also adds the devid as the readmirror policy. The new property is stored