Re: [Ocfs2-devel] ocfs2: fix recursive locking deadlock

2016-05-09 Thread Andrew Morton
On Tue, 10 May 2016 14:10:43 +0800 Junxiao Bi wrote: > On 05/10/2016 01:58 PM, Andrew Morton wrote: > > On Tue, 10 May 2016 12:53:41 +0800 Junxiao Bi wrote: > > > >> These two patches is to fix recursive locking deadlock issues. As we > >> talked with Mark before, recursive locking is not allow

Re: [Ocfs2-devel] ocfs2: fix recursive locking deadlock

2016-05-09 Thread Junxiao Bi
On 05/10/2016 01:58 PM, Andrew Morton wrote: > On Tue, 10 May 2016 12:53:41 +0800 Junxiao Bi wrote: > >> These two patches is to fix recursive locking deadlock issues. As we >> talked with Mark before, recursive locking is not allowed in ocfs2, >> so these two patches fixes the deadlock issue wit

Re: [Ocfs2-devel] ocfs2: fix recursive locking deadlock

2016-05-09 Thread Andrew Morton
On Tue, 10 May 2016 12:53:41 +0800 Junxiao Bi wrote: > These two patches is to fix recursive locking deadlock issues. As we > talked with Mark before, recursive locking is not allowed in ocfs2, > so these two patches fixes the deadlock issue with reverting back > patches to avoid recursive lockin

Re: [Ocfs2-devel] Reflink hangs with kernel 4.4

2016-05-09 Thread Junxiao Bi
Hi Tiger, Only those two process reported call trace from the two nodes? If so, looks a little different from my hung where it is a recursive locking of cluster lock. Any way, i just post the fixed to my issue to the mail list, you can have a try. Thanks, Junxiao. On 05/09/2016 09:20 PM, 서정우 wro

[Ocfs2-devel] [PATCH 2/2] ocfs2: fix posix_acl_create deadlock

2016-05-09 Thread Junxiao Bi
commit 702e5bc68ad2 ("ocfs2: use generic posix ACL infrastructure") refactored code to use posix_acl_create. The problem with this function is that it is not mindful of the cluster wide inode lock making it unsuitable for use with ocfs2 inode creation with ACLs. For example, when used in ocfs2_mkno

[Ocfs2-devel] [PATCH 1/2] ocfs2: revert using ocfs2_acl_chmod to avoid inode cluster lock hang

2016-05-09 Thread Junxiao Bi
commit 743b5f1434f5 ("ocfs2: take inode lock in ocfs2_iop_set/get_acl()") introduced this issue. ocfs2_setattr called by chmod command holds cluster wide inode lock when calling posix_acl_chmod. This latter function in turn calls ocfs2_iop_get_acl and ocfs2_iop_set_acl. These two are also called

[Ocfs2-devel] ocfs2: fix recursive locking deadlock

2016-05-09 Thread Junxiao Bi
Hi, These two patches is to fix recursive locking deadlock issues. As we talked with Mark before, recursive locking is not allowed in ocfs2, so these two patches fixes the deadlock issue with reverting back patches to avoid recursive locking. Please review. Thanks, Junxiao.

[Ocfs2-devel] Reflink hangs with kernel 4.4

2016-05-09 Thread 서정우
Hi all. I built up ocfs2 on drbd dual primary. Each node has 12 disks of Raid 10 with mdadm chuck size 4096k. Cluster size of filesystem is 1048576 bytes. Main purpose of use is reflink files on drbd. I reflinked files from 1TB file and exported them to LIO iscsi. After few days tests, i got k

Re: [Ocfs2-devel] Reflink hangs with kernel 4.4

2016-05-09 Thread Eric Ren
Hello: On 05/09/2016 09:20 PM, 서정우 wrote: Hi all. I built up ocfs2 on drbd dual primary. Each node has 12 disks of Raid 10 with mdadm chuck size 4096k. Cluster size of filesystem is 1048576 bytes. Main purpose of use is reflink files on drbd. I reflinked files from 1TB file and exported them

[Ocfs2-devel] Reflink hangs with kernel 4.4

2016-05-09 Thread 서정우
Hi all. I built up ocfs2 on drbd dual primary. Each node has 12 disks of Raid 10 with mdadm chuck size 4096k. Cluster size of filesystem is 1048576 bytes. Main purpose of use is reflink files on drbd. I reflinked files from 1TB file and exported them to LIO iscsi. After few days tests, i got k