Re: [Ocfs2-devel] [PATCH v2 2/2] ocfs2: add trimfs lock to avoid duplicated trims in cluster

2018-01-10 Thread Changwei Ge
On 2018/1/11 11:33, Gang He wrote: > Hi Changwei, > > >> On 2018/1/11 10:07, Gang He wrote: >>> Hi Changwei, >>> >>> >> On 2018/1/10 18:14, Gang He wrote: > Hi Changwei, > > >> On 2018/1/10 17:05, Gang He wrote: >>> Hi Changwei, >>> >>>

Re: [Ocfs2-devel] [PATCH v2 2/2] ocfs2: add trimfs lock to avoid duplicated trims in cluster

2018-01-10 Thread Gang He
Hi Changwei, >>> > On 2018/1/11 10:07, Gang He wrote: >> Hi Changwei, >> >> > >>> On 2018/1/10 18:14, Gang He wrote: Hi Changwei, >>> > On 2018/1/10 17:05, Gang He wrote: >> Hi Changwei, >> >> > >>> Hi Gang, >>> >>> On 2017/12/14

Re: [Ocfs2-devel] kernel bug

2018-01-10 Thread Changwei Ge
Hi Cédric, On kernel mainline:) On 2018/1/11 14:50, BASSAGET Cédric wrote: > Hi Changwei. > My question may be stupid, but... can you tell me where I can find the source > of latest ocfs2 ? > Every google search points to oracle website which refers to 1.6 versions > > 2018-01-11 2:03

Re: [Ocfs2-devel] [PATCH v3 3/3] ocfs2: nowait aio support

2018-01-10 Thread Gang He
Hi Alex, >>> > Hi Gang, > > On 2017/12/28 18:07, Gang He wrote: >> Return -EAGAIN if any of the following checks fail for >> direct I/O with nowait flag: >> Can not get the related locks immediately, >> Blocks are not allocated at the write location, it will trigger >> block allocation, this

Re: [Ocfs2-devel] kernel bug

2018-01-10 Thread BASSAGET Cédric
Hi Changwei. My question may be stupid, but... can you tell me where I can find the source of latest ocfs2 ? Every google search points to oracle website which refers to 1.6 versions 2018-01-11 2:03 GMT+01:00 Changwei Ge : > Hi Cédric, > > These two patches are already

Re: [Ocfs2-devel] [PATCH v3 2/3] ocfs2: add ocfs2_overwrite_io function

2018-01-10 Thread alex chen
Hi Gang, On 2018/1/4 11:32, Gang He wrote: > Hi Alex, > > >> Hi Gang, >> >> On 2018/1/3 13:14, Gang He wrote: >>> Hi Alex, >>> >>> >> Hi Gang, On 2017/12/28 18:07, Gang He wrote: > Add ocfs2_overwrite_io function, which is used to judge if > overwrite allocated

Re: [Ocfs2-devel] [PATCH v3 3/3] ocfs2: nowait aio support

2018-01-10 Thread alex chen
Hi Gang, On 2017/12/28 18:07, Gang He wrote: > Return -EAGAIN if any of the following checks fail for > direct I/O with nowait flag: > Can not get the related locks immediately, > Blocks are not allocated at the write location, it will trigger > block allocation, this will block IO operations. >

Re: [Ocfs2-devel] [PATCH v2 2/2] ocfs2: add trimfs lock to avoid duplicated trims in cluster

2018-01-10 Thread Changwei Ge
On 2018/1/11 10:07, Gang He wrote: > Hi Changwei, > > >> On 2018/1/10 18:14, Gang He wrote: >>> Hi Changwei, >>> >>> >> On 2018/1/10 17:05, Gang He wrote: > Hi Changwei, > > >> Hi Gang, >> >> On 2017/12/14 13:16, Gang He wrote: >>> As you know,

Re: [Ocfs2-devel] [PATCH v2 2/2] ocfs2: add trimfs lock to avoid duplicated trims in cluster

2018-01-10 Thread Changwei Ge
On 2018/1/11 12:31, Gang He wrote: > Hi Changwei, > > >> On 2018/1/11 11:33, Gang He wrote: >>> Hi Changwei, >>> >>> >> On 2018/1/11 10:07, Gang He wrote: > Hi Changwei, > > >> On 2018/1/10 18:14, Gang He wrote: >>> Hi Changwei, >>> >>>

Re: [Ocfs2-devel] [PATCH v2 2/2] ocfs2: add trimfs lock to avoid duplicated trims in cluster

2018-01-10 Thread Gang He
>>> > On 2018/1/11 12:31, Gang He wrote: >> Hi Changwei, >> >> > >>> On 2018/1/11 11:33, Gang He wrote: Hi Changwei, >>> > On 2018/1/11 10:07, Gang He wrote: >> Hi Changwei, >> >> > >>> On 2018/1/10 18:14, Gang He wrote: Hi

Re: [Ocfs2-devel] [PATCH v2 2/2] ocfs2: add trimfs lock to avoid duplicated trims in cluster

2018-01-10 Thread Gang He
Hi Changwei, >>> > On 2018/1/10 17:05, Gang He wrote: >> Hi Changwei, >> >> > >>> Hi Gang, >>> >>> On 2017/12/14 13:16, Gang He wrote: As you know, ocfs2 has support trim the underlying disk via fstrim command. But there is a problem, ocfs2 is a shared disk cluster file

Re: [Ocfs2-devel] [PATCH v2 2/2] ocfs2: add trimfs lock to avoid duplicated trims in cluster

2018-01-10 Thread Changwei Ge
On 2018/1/10 17:05, Gang He wrote: > Hi Changwei, > > >> Hi Gang, >> >> On 2017/12/14 13:16, Gang He wrote: >>> As you know, ocfs2 has support trim the underlying disk via >>> fstrim command. But there is a problem, ocfs2 is a shared disk >>> cluster file system, if the user configures a

Re: [Ocfs2-devel] [PATCH v2 2/2] ocfs2: add trimfs lock to avoid duplicated trims in cluster

2018-01-10 Thread Changwei Ge
Hi Gang, On 2018/1/10 18:14, Gang He wrote: > Hi Changwei, > > >> On 2018/1/10 17:05, Gang He wrote: >>> Hi Changwei, >>> >>> >> Hi Gang, On 2017/12/14 13:16, Gang He wrote: > As you know, ocfs2 has support trim the underlying disk via > fstrim command. But there

Re: [Ocfs2-devel] kernel bug

2018-01-10 Thread BASSAGET Cédric
Hi Changwei, Can you give me a ref or a link pointing to your patch ? Thanks 2018-01-10 12:57 GMT+01:00 Changwei Ge : > Hi BASSAGET, > > We ocfs2 developers are solving a DIO crash issue which may share the same > root cause with yours. > > You can refer to my patch set of 2

Re: [Ocfs2-devel] [PATCH v2 2/2] ocfs2: add trimfs lock to avoid duplicated trims in cluster

2018-01-10 Thread Gang He
Hi Changwei, >>> > On 2018/1/10 18:14, Gang He wrote: >> Hi Changwei, >> >> > >>> On 2018/1/10 17:05, Gang He wrote: Hi Changwei, >>> > Hi Gang, > > On 2017/12/14 13:16, Gang He wrote: >> As you know, ocfs2 has support trim the underlying disk via >>

Re: [Ocfs2-devel] [PATCH v2 2/2] ocfs2: add trimfs lock to avoid duplicated trims in cluster

2018-01-10 Thread Gang He
Hi Changwei, >>> > On 2018/1/11 11:33, Gang He wrote: >> Hi Changwei, >> >> > >>> On 2018/1/11 10:07, Gang He wrote: Hi Changwei, >>> > On 2018/1/10 18:14, Gang He wrote: >> Hi Changwei, >> >> > >>> On 2018/1/10 17:05, Gang He wrote:

Re: [Ocfs2-devel] [PATCH v2 2/2] ocfs2: add trimfs lock to avoid duplicated trims in cluster

2018-01-10 Thread Changwei Ge
On 2018/1/11 15:19, Gang He wrote: > > > >> On 2018/1/11 12:31, Gang He wrote: >>> Hi Changwei, >>> >>> >> On 2018/1/11 11:33, Gang He wrote: > Hi Changwei, > > >> On 2018/1/11 10:07, Gang He wrote: >>> Hi Changwei, >>> >>> >>

Re: [Ocfs2-devel] [PATCH v2 2/2] ocfs2: add trimfs lock to avoid duplicated trims in cluster

2018-01-10 Thread Gang He
>>> > On 2018/1/11 15:19, Gang He wrote: >> >> >> > >>> On 2018/1/11 12:31, Gang He wrote: Hi Changwei, >>> > On 2018/1/11 11:33, Gang He wrote: >> Hi Changwei, >> >> > >>> On 2018/1/11 10:07, Gang He wrote: Hi Changwei,

Re: [Ocfs2-devel] [PATCH v2 2/2] ocfs2: add trimfs lock to avoid duplicated trims in cluster

2018-01-10 Thread Gang He
Hi Changwei, >>> > Hi Gang, > > On 2017/12/14 13:16, Gang He wrote: >> As you know, ocfs2 has support trim the underlying disk via >> fstrim command. But there is a problem, ocfs2 is a shared disk >> cluster file system, if the user configures a scheduled fstrim >> job on each file system

Re: [Ocfs2-devel] kernel bug

2018-01-10 Thread Changwei Ge
Hi BASSAGET, We ocfs2 developers are solving a DIO crash issue which may share the same root cause with yours. You can refer to my patch set of 2 and backport them into your kernel to see if the issue can be kicked away. ocfs2: make metadata estimation accurate and clear ocfs2: try to

Re: [Ocfs2-devel] kernel bug

2018-01-10 Thread piaojun
Hi Cédric, You'd better paste the core dump stack and the method of reproducing this BUG. thanks, Jun On 2018/1/10 19:48, BASSAGET Cédric wrote: > Hello > Today I reported a bug related to ocfs2 1.8.on proxmox forum, maybe somebody > here will be able to help me... > The bog on proxmox forum :

[Ocfs2-devel] kernel bug

2018-01-10 Thread BASSAGET Cédric
Hello Today I reported a bug related to ocfs2 1.8.on proxmox forum, maybe somebody here will be able to help me... The bog on proxmox forum :

Re: [Ocfs2-devel] [PATCH v2 2/2] ocfs2: add trimfs lock to avoid duplicated trims in cluster

2018-01-10 Thread Changwei Ge
On 2018/1/10 18:14, Gang He wrote: > Hi Changwei, > > >> On 2018/1/10 17:05, Gang He wrote: >>> Hi Changwei, >>> >>> >> Hi Gang, On 2017/12/14 13:16, Gang He wrote: > As you know, ocfs2 has support trim the underlying disk via > fstrim command. But there is a

Re: [Ocfs2-devel] [PATCH v2 2/2] ocfs2: add trimfs lock to avoid duplicated trims in cluster

2018-01-10 Thread Changwei Ge
On 2018/1/4 10:09, Gang He wrote: > Hi Alex, > > >> Hi Gang, >> >> On 2017/12/14 13:14, Gang He wrote: >>> As you know, ocfs2 has support trim the underlying disk via >>> fstrim command. But there is a problem, ocfs2 is a shared disk >>> cluster file system, if the user configures a

Re: [Ocfs2-devel] [PATCH v2 1/2] ocfs2: add trimfs dlm lock resource

2018-01-10 Thread Gang He
Hi Changwei, >>> > Hi Gang, > > On 2017/12/14 13:16, Gang He wrote: >> Introduce a new dlm lock resource, which will be used to >> communicate during fstrim a ocfs2 device from cluster nodes. >> >> Signed-off-by: Gang He >> --- >> fs/ocfs2/dlmglue.c | 86 >