deadlock on chmod when running discontigous block group multiple node testing
Hi Junxiao,
As the subject, the testing hung there on a kernel without your patches:
"ocfs2: revert using ocfs2_acl_chmod to avoid inode cluster lock hang" and
"ocfs2: fix posix_acl_create deadlock"
The stack trace is:
``` ocfs2cts1:~ # pstree -pl 24133 discontig_runne(24133)???activate_discon(21156)???mpirun(15146)???fillup_contig_b(15149)???sudo(15231)???chmod(15232) ocfs2cts1:~ # pgrep -a chmod 15232 /bin/chmod -R 777 /mnt/ocfs2 ocfs2cts1:~ # cat /proc/15232/stack [<ffffffffa05377ef>] __ocfs2_cluster_lock.isra.39+0x1bf/0x620 [ocfs2] [<ffffffffa053856d>] ocfs2_inode_lock_full_nested+0x12d/0x840 [ocfs2] [<ffffffffa0538dbb>] ocfs2_inode_lock_atime+0xcb/0x170 [ocfs2] [<ffffffffa0531e61>] ocfs2_readdir+0x41/0x1b0 [ocfs2] [<ffffffff8120d03c>] iterate_dir+0x9c/0x110 [<ffffffff8120d453>] SyS_getdents+0x83/0xf0 [<ffffffff815e126e>] entry_SYSCALL_64_fastpath+0x12/0x6d [<ffffffffffffffff>] 0xffffffffffffffff ```
Do you think this issue can be fixed by your patches?
I will try your patches later, but I am little worried the possibility of reproduction may not be 100%.
So ask you to confirm;-)
Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://oss.oracle.com/pipermail/ocfs2-devel/attachments/20161011/9363a95d/attachment.html
Hi Eric,
Quoted 27 lines · Eric Ren
Hi Junxiao,
As the subject, the testing hung there on a kernel without your patches:
"ocfs2: revert using
ocfs2_acl_chmodto avoid inode cluster lock hang" and
"ocfs2: fixposix_acl_createdeadlock"The stack trace is:
``` ocfs2cts1:~ # pstree -pl 24133 discontig_runne(24133)???activate_discon(21156)???mpirun(15146)???fillup_contig_b(15149)???sudo(15231)???chmod(15232) ocfs2cts1:~ # pgrep -a chmod 15232 /bin/chmod -R 777 /mnt/ocfs2 ocfs2cts1:~ # cat /proc/15232/stack [<ffffffffa05377ef>] __ocfs2_cluster_lock.isra.39+0x1bf/0x620 [ocfs2] [<ffffffffa053856d>] ocfs2_inode_lock_full_nested+0x12d/0x840 [ocfs2] [<ffffffffa0538dbb>] ocfs2_inode_lock_atime+0xcb/0x170 [ocfs2] [<ffffffffa0531e61>] ocfs2_readdir+0x41/0x1b0 [ocfs2] [<ffffffff8120d03c>] iterate_dir+0x9c/0x110 [<ffffffff8120d453>] SyS_getdents+0x83/0xf0 [<ffffffff815e126e>] entry_SYSCALL_64_fastpath+0x12/0x6d [<ffffffffffffffff>] 0xffffffffffffffff ```
Quoted 1 line
Do you think this issue can be fixed by your patches?
Looks not. Those two patches are to fix recursive locking deadlock. But from above call trace, there is no recursive lock.
Thanks,
Junxiao.
Quoted 6 lines
I will try your patches later, but I am little worried the possibility of reproduction may not be 100%.
So ask you to confirm;-)Eric
Hi Junxiao,
Quoted 3 lines · Junxiao Bi
Quoted 1 line
Do you think this issue can be fixed by your patches?
Looks not. Those two patches are to fix recursive locking deadlock. But from above call trace, there is no recursive lock.
OK, thanks a lot!
Eric
Quoted 9 lines
Thanks,
Junxiao.Quoted 5 lines
I will try your patches later, but I am little worried the possibility of reproduction may not be 100%.
So ask you to confirm;-)Eric
Hi Junxiao,
Quoted 30 lines
Hi Eric,
Quoted 27 lines · Eric Ren
Hi Junxiao,
As the subject, the testing hung there on a kernel without your patches:
"ocfs2: revert using
ocfs2_acl_chmodto avoid inode cluster lock hang" and
"ocfs2: fixposix_acl_createdeadlock"The stack trace is:
``` ocfs2cts1:~ # pstree -pl 24133 discontig_runne(24133)???activate_discon(21156)???mpirun(15146)???fillup_contig_b(15149)???sudo(15231)???chmod(15232) ocfs2cts1:~ # pgrep -a chmod 15232 /bin/chmod -R 777 /mnt/ocfs2 ocfs2cts1:~ # cat /proc/15232/stack [<ffffffffa05377ef>] __ocfs2_cluster_lock.isra.39+0x1bf/0x620 [ocfs2] [<ffffffffa053856d>] ocfs2_inode_lock_full_nested+0x12d/0x840 [ocfs2] [<ffffffffa0538dbb>] ocfs2_inode_lock_atime+0xcb/0x170 [ocfs2] [<ffffffffa0531e61>] ocfs2_readdir+0x41/0x1b0 [ocfs2] [<ffffffff8120d03c>] iterate_dir+0x9c/0x110 [<ffffffff8120d453>] SyS_getdents+0x83/0xf0 [<ffffffff815e126e>] entry_SYSCALL_64_fastpath+0x12/0x6d [<ffffffffffffffff>] 0xffffffffffffffff ```
Quoted 3 lines
Quoted 1 line
Do you think this issue can be fixed by your patches?
Looks not. Those two patches are to fix recursive locking deadlock. But from above call trace, there is no recursive lock.
Sorry, the call trace on another node was missing. Here it is:
ocfs2cts2:~ # pstree -lp sshd(4292)???sshd(4745)???sshd(4753)???bash(4754)???orted(4781)???fillup_contig_b(4782)???sudo(4864)???chmod(4865)
ocfs2cts2:~ # cat /proc/4865/stack
[<ffffffffa053e7ef>] __ocfs2_cluster_lock.isra.39+0x1bf/0x620 [ocfs2] [<ffffffffa053f56d>] ocfs2_inode_lock_full_nested+0x12d/0x840 [ocfs2] [<ffffffffa059c860>] ocfs2_iop_get_acl+0x40/0xf0 [ocfs2] [<ffffffff812044e6>] generic_permission+0x166/0x1c0 [<ffffffffa0542aca>] ocfs2_permission+0xaa/0xd0 [ocfs2] [<ffffffff81204596>] __inode_permission+0x56/0xb0 [<ffffffff812068fa>] link_path_walk+0x29a/0x560 [<ffffffff81206cbf>] path_lookupat+0x7f/0x110 [<ffffffff8120929c>] filename_lookup+0x9c/0x150 [<ffffffff811f96c3>] SyS_fchmodat+0x33/0x90 [<ffffffff815e126e>] entry_SYSCALL_64_fastpath+0x12/0x6d
[<ffffffffffffffff>] 0xffffffffffffffff
Thanks,
Eric
Quoted 9 lines
Thanks,
Junxiao.Quoted 5 lines
I will try your patches later, but I am little worried the possibility of reproduction may not be 100%.
So ask you to confirm;-)Eric
Hi,
When backporting those patches, I find that they are already in our product kernel, maybe via "stable kernel" policy, although our product kernel is 4.4 while the patches were merged into 4.6.
Seems it's another deadlock that happens when doing chmod -R 777 /mnt/ocfs2 among mutilple nodes at the same time.
Thanks,
Eric
Quoted 70 lines · Eric Ren
Hi Junxiao,
Quoted 30 lines
Hi Eric,
Quoted 27 lines · Eric Ren
Hi Junxiao,
As the subject, the testing hung there on a kernel without your patches:
"ocfs2: revert using
ocfs2_acl_chmodto avoid inode cluster lock hang" and
"ocfs2: fixposix_acl_createdeadlock"The stack trace is:
``` ocfs2cts1:~ # pstree -pl 24133 discontig_runne(24133)???activate_discon(21156)???mpirun(15146)???fillup_contig_b(15149)???sudo(15231)???chmod(15232) ocfs2cts1:~ # pgrep -a chmod 15232 /bin/chmod -R 777 /mnt/ocfs2 ocfs2cts1:~ # cat /proc/15232/stack [<ffffffffa05377ef>] __ocfs2_cluster_lock.isra.39+0x1bf/0x620 [ocfs2] [<ffffffffa053856d>] ocfs2_inode_lock_full_nested+0x12d/0x840 [ocfs2] [<ffffffffa0538dbb>] ocfs2_inode_lock_atime+0xcb/0x170 [ocfs2] [<ffffffffa0531e61>] ocfs2_readdir+0x41/0x1b0 [ocfs2] [<ffffffff8120d03c>] iterate_dir+0x9c/0x110 [<ffffffff8120d453>] SyS_getdents+0x83/0xf0 [<ffffffff815e126e>] entry_SYSCALL_64_fastpath+0x12/0x6d [<ffffffffffffffff>] 0xffffffffffffffff ```Quoted 3 lines
Quoted 1 line
Do you think this issue can be fixed by your patches?
Looks not. Those two patches are to fix recursive locking deadlock. But from above call trace, there is no recursive lock.
Sorry, the call trace on another node was missing. Here it is:
ocfs2cts2:~ # pstree -lp sshd(4292)???sshd(4745)???sshd(4753)???bash(4754)???orted(4781)???fillup_contig_b(4782)???sudo(4864)???chmod(4865)
ocfs2cts2:~ # cat
/proc/4865/stack[<ffffffffa053e7ef>] __ocfs2_cluster_lock.isra.39+0x1bf/0x620 [ocfs2] [<ffffffffa053f56d>] ocfs2_inode_lock_full_nested+0x12d/0x840 [ocfs2] [<ffffffffa059c860>] ocfs2_iop_get_acl+0x40/0xf0 [ocfs2] [<ffffffff812044e6>] generic_permission+0x166/0x1c0 [<ffffffffa0542aca>] ocfs2_permission+0xaa/0xd0 [ocfs2] [<ffffffff81204596>] __inode_permission+0x56/0xb0 [<ffffffff812068fa>] link_path_walk+0x29a/0x560 [<ffffffff81206cbf>] path_lookupat+0x7f/0x110 [<ffffffff8120929c>] filename_lookup+0x9c/0x150 [<ffffffff811f96c3>] SyS_fchmodat+0x33/0x90 [<ffffffff815e126e>] entry_SYSCALL_64_fastpath+0x12/0x6d[<ffffffffffffffff>]
0xffffffffffffffffThanks,
EricQuoted 7 lines
Thanks,
Junxiao.Quoted 5 lines
I will try your patches later, but I am little worried the possibility of reproduction may not be 100%.
So ask you to confirm;-)Eric
_______________________________________________
Ocfs2-devel mailing list
Ocfs2-devel at oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-devel
Quoted 11 lines · Eric Ren
Hi,
When backporting those patches, I find that they are already in our product kernel, maybe
via "stable kernel" policy, although our product kernel is 4.4 while the patches were merged
into 4.6.Seems it's another deadlock that happens when doing
chmod -R 777 /mnt/ocfs2
among mutilple nodes at the same time.
Yes, but i just finish running ocfs2 full test on linux next-20161006 and didn't find any issue.
Thanks,
Junxiao.
Quoted 79 lines
Thanks,
EricQuoted 73 lines · Eric Ren
Hi Junxiao,
Quoted 32 lines
Hi Eric,
Quoted 29 lines · Eric Ren
Hi Junxiao,
As the subject, the testing hung there on a kernel without your patches:
"ocfs2: revert using
ocfs2_acl_chmodto avoid inode cluster lock hang" and
"ocfs2: fixposix_acl_createdeadlock"The stack trace is:
``` ocfs2cts1:~ # pstree -pl 24133 discontig_runne(24133)???activate_discon(21156)???mpirun(15146)???fillup_contig_b(15149)???sudo(15231)???chmod(15232) ocfs2cts1:~ # pgrep -a chmod 15232 /bin/chmod -R 777 /mnt/ocfs2 ocfs2cts1:~ # cat /proc/15232/stack [<ffffffffa05377ef>] __ocfs2_cluster_lock.isra.39+0x1bf/0x620 [ocfs2] [<ffffffffa053856d>] ocfs2_inode_lock_full_nested+0x12d/0x840 [ocfs2] [<ffffffffa0538dbb>] ocfs2_inode_lock_atime+0xcb/0x170 [ocfs2] [<ffffffffa0531e61>] ocfs2_readdir+0x41/0x1b0 [ocfs2] [<ffffffff8120d03c>] iterate_dir+0x9c/0x110 [<ffffffff8120d453>] SyS_getdents+0x83/0xf0 [<ffffffff815e126e>] entry_SYSCALL_64_fastpath+0x12/0x6d [<ffffffffffffffff>] 0xffffffffffffffff ```Quoted 3 lines
Quoted 1 line
Do you think this issue can be fixed by your patches?
Looks not. Those two patches are to fix recursive locking deadlock. But from above call trace, there is no recursive lock.
Sorry, the call trace on another node was missing. Here it is:
ocfs2cts2:~ # pstree -lp sshd(4292)???sshd(4745)???sshd(4753)???bash(4754)???orted(4781)???fillup_contig_b(4782)???sudo(4864)???chmod(4865)
ocfs2cts2:~ # cat
/proc/4865/stack[<ffffffffa053e7ef>] __ocfs2_cluster_lock.isra.39+0x1bf/0x620 [ocfs2] [<ffffffffa053f56d>] ocfs2_inode_lock_full_nested+0x12d/0x840 [ocfs2] [<ffffffffa059c860>] ocfs2_iop_get_acl+0x40/0xf0 [ocfs2] [<ffffffff812044e6>] generic_permission+0x166/0x1c0 [<ffffffffa0542aca>] ocfs2_permission+0xaa/0xd0 [ocfs2] [<ffffffff81204596>] __inode_permission+0x56/0xb0 [<ffffffff812068fa>] link_path_walk+0x29a/0x560 [<ffffffff81206cbf>] path_lookupat+0x7f/0x110 [<ffffffff8120929c>] filename_lookup+0x9c/0x150 [<ffffffff811f96c3>] SyS_fchmodat+0x33/0x90 [<ffffffff815e126e>] entry_SYSCALL_64_fastpath+0x12/0x6d[<ffffffffffffffff>]
0xffffffffffffffffThanks,
EricQuoted 7 lines
Thanks,
Junxiao.Quoted 5 lines
I will try your patches later, but I am little worried the possibility of reproduction may not be 100%.
So ask you to confirm;-)Eric
_______________________________________________
Ocfs2-devel mailing list
Ocfs2-devel at oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-devel
Hi Junxiao,
Quoted 9 lines · Junxiao Bi
Quoted 8 lines · Eric Ren
Hi,
When backporting those patches, I find that they are already in our product kernel, maybe
via "stable kernel" policy, although our product kernel is 4.4 while the patches were merged
into 4.6.
Quoted 5 lines
Quoted 3 lines
Seems it's another deadlock that happens when doing
chmod -R 777 /mnt/ocfs2
among mutilple nodes at the same time.Yes, but i just finish running ocfs2 full test on linux next-20161006 and didn't find any issue.
Thanks a lot, really!
1. What's the size of your ocfs2 disk? My disk is 200G.
2. Did you run discontig block group test with multiple nodes? with this option:
" -m ocfs2cts1,ocfs2cts2"
3. Then, I am using fs/dlm. That's a different point.
Thanks,
Eric
Quoted 81 lines
Thanks,
Junxiao.Quoted 76 lines
Thanks,
EricQuoted 72 lines · Eric Ren
Hi Junxiao,
Quoted 32 lines
Hi Eric,
Quoted 29 lines · Eric Ren
Hi Junxiao,
As the subject, the testing hung there on a kernel without your patches:
"ocfs2: revert using
ocfs2_acl_chmodto avoid inode cluster lock hang" and
"ocfs2: fixposix_acl_createdeadlock"The stack trace is:
``` ocfs2cts1:~ # pstree -pl 24133 discontig_runne(24133)???activate_discon(21156)???mpirun(15146)???fillup_contig_b(15149)???sudo(15231)???chmod(15232) ocfs2cts1:~ # pgrep -a chmod 15232 /bin/chmod -R 777 /mnt/ocfs2 ocfs2cts1:~ # cat /proc/15232/stack [<ffffffffa05377ef>] __ocfs2_cluster_lock.isra.39+0x1bf/0x620 [ocfs2] [<ffffffffa053856d>] ocfs2_inode_lock_full_nested+0x12d/0x840 [ocfs2] [<ffffffffa0538dbb>] ocfs2_inode_lock_atime+0xcb/0x170 [ocfs2] [<ffffffffa0531e61>] ocfs2_readdir+0x41/0x1b0 [ocfs2] [<ffffffff8120d03c>] iterate_dir+0x9c/0x110 [<ffffffff8120d453>] SyS_getdents+0x83/0xf0 [<ffffffff815e126e>] entry_SYSCALL_64_fastpath+0x12/0x6d [<ffffffffffffffff>] 0xffffffffffffffff ```Quoted 3 lines
Quoted 1 line
Do you think this issue can be fixed by your patches?
Looks not. Those two patches are to fix recursive locking deadlock. But from above call trace, there is no recursive lock.
Sorry, the call trace on another node was missing. Here it is:
ocfs2cts2:~ # pstree -lp sshd(4292)???sshd(4745)???sshd(4753)???bash(4754)???orted(4781)???fillup_contig_b(4782)???sudo(4864)???chmod(4865)
ocfs2cts2:~ # cat
/proc/4865/stack[<ffffffffa053e7ef>] __ocfs2_cluster_lock.isra.39+0x1bf/0x620 [ocfs2] [<ffffffffa053f56d>] ocfs2_inode_lock_full_nested+0x12d/0x840 [ocfs2] [<ffffffffa059c860>] ocfs2_iop_get_acl+0x40/0xf0 [ocfs2] [<ffffffff812044e6>] generic_permission+0x166/0x1c0 [<ffffffffa0542aca>] ocfs2_permission+0xaa/0xd0 [ocfs2] [<ffffffff81204596>] __inode_permission+0x56/0xb0 [<ffffffff812068fa>] link_path_walk+0x29a/0x560 [<ffffffff81206cbf>] path_lookupat+0x7f/0x110 [<ffffffff8120929c>] filename_lookup+0x9c/0x150 [<ffffffff811f96c3>] SyS_fchmodat+0x33/0x90 [<ffffffff815e126e>] entry_SYSCALL_64_fastpath+0x12/0x6d[<ffffffffffffffff>]
0xffffffffffffffffThanks,
EricQuoted 7 lines
Thanks,
Junxiao.Quoted 5 lines
I will try your patches later, but I am little worried the possibility of reproduction may not be 100%.
So ask you to confirm;-)Eric
_______________________________________________
Ocfs2-devel mailing list
Ocfs2-devel at oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-devel
Quoted 15 lines · Eric Ren
Hi Junxiao,
Quoted 12 lines · Junxiao Bi
Quoted 11 lines · Eric Ren
Hi,
When backporting those patches, I find that they are already in our product kernel, maybe
via "stable kernel" policy, although our product kernel is 4.4 while the patches were merged
into 4.6.Seems it's another deadlock that happens when doing
chmod -R 777 /mnt/ocfs2
among mutilple nodes at the same time.
Quoted 6 lines
Quoted 2 lines
Yes, but i just finish running ocfs2 full test on linux next-20161006 and didn't find any issue.
Thanks a lot, really!
1. What's the size of your ocfs2 disk? My disk is 200G.
212G
Quoted 3 lines
2. Did you run discontig block group test with multiple nodes? with this option:
Yes, but i don't know what that option is.
Quoted 4 lines
" -m ocfs2cts1,ocfs2cts2"3. Then, I am using fs/dlm. That's a different point.
Yes, that deserve a look since your issue is cluster locking hung.
Thanks,
Junxiao.
Quoted 91 lines
Thanks,
EricQuoted 86 lines
Thanks,
Junxiao.Quoted 81 lines
Thanks,
EricQuoted 77 lines · Eric Ren
Hi Junxiao,
Quoted 34 lines
Hi Eric,
Quoted 31 lines · Eric Ren
Hi Junxiao,
As the subject, the testing hung there on a kernel without your patches:
"ocfs2: revert using
ocfs2_acl_chmodto avoid inode cluster lock hang"
and
"ocfs2: fixposix_acl_createdeadlock"The stack trace is:
``` ocfs2cts1:~ # pstree -pl 24133 discontig_runne(24133)???activate_discon(21156)???mpirun(15146)???fillup_contig_b(15149)???sudo(15231)???chmod(15232) ocfs2cts1:~ # pgrep -a chmod 15232 /bin/chmod -R 777 /mnt/ocfs2 ocfs2cts1:~ # cat /proc/15232/stack [<ffffffffa05377ef>] __ocfs2_cluster_lock.isra.39+0x1bf/0x620 [ocfs2] [<ffffffffa053856d>] ocfs2_inode_lock_full_nested+0x12d/0x840 [ocfs2] [<ffffffffa0538dbb>] ocfs2_inode_lock_atime+0xcb/0x170 [ocfs2] [<ffffffffa0531e61>] ocfs2_readdir+0x41/0x1b0 [ocfs2] [<ffffffff8120d03c>] iterate_dir+0x9c/0x110 [<ffffffff8120d453>] SyS_getdents+0x83/0xf0 [<ffffffff815e126e>] entry_SYSCALL_64_fastpath+0x12/0x6d [<ffffffffffffffff>] 0xffffffffffffffff ```Quoted 4 lines
Quoted 1 line
Do you think this issue can be fixed by your patches?
Looks not. Those two patches are to fix recursive locking deadlock. But
from above call trace, there is no recursive lock.Sorry, the call trace on another node was missing. Here it is:
ocfs2cts2:~ # pstree -lp sshd(4292)???sshd(4745)???sshd(4753)???bash(4754)???orted(4781)???fillup_contig_b(4782)???sudo(4864)???chmod(4865)
ocfs2cts2:~ # cat
/proc/4865/stack[<ffffffffa053e7ef>] __ocfs2_cluster_lock.isra.39+0x1bf/0x620 [ocfs2] [<ffffffffa053f56d>] ocfs2_inode_lock_full_nested+0x12d/0x840 [ocfs2] [<ffffffffa059c860>] ocfs2_iop_get_acl+0x40/0xf0 [ocfs2] [<ffffffff812044e6>] generic_permission+0x166/0x1c0 [<ffffffffa0542aca>] ocfs2_permission+0xaa/0xd0 [ocfs2] [<ffffffff81204596>] __inode_permission+0x56/0xb0 [<ffffffff812068fa>] link_path_walk+0x29a/0x560 [<ffffffff81206cbf>] path_lookupat+0x7f/0x110 [<ffffffff8120929c>] filename_lookup+0x9c/0x150 [<ffffffff811f96c3>] SyS_fchmodat+0x33/0x90 [<ffffffff815e126e>] entry_SYSCALL_64_fastpath+0x12/0x6d[<ffffffffffffffff>]
0xffffffffffffffffThanks,
EricQuoted 8 lines
Thanks,
Junxiao.Quoted 6 lines
I will try your patches later, but I am little worried the possibility
of reproduction may not be 100%.
So ask you to confirm;-)Eric
_______________________________________________
Ocfs2-devel mailing list
Ocfs2-devel at oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-devel
Hi,
Quoted 18 lines · Junxiao Bi
Quoted 17 lines · Eric Ren
Hi Junxiao,
Quoted 14 lines · Junxiao Bi
Quoted 11 lines · Eric Ren
Hi,
When backporting those patches, I find that they are already in our product kernel, maybe
via "stable kernel" policy, although our product kernel is 4.4 while the patches were merged
into 4.6.Seems it's another deadlock that happens when doing
chmod -R 777 /mnt/ocfs2
among mutilple nodes at the same time.Yes, but i just finish running ocfs2 full test on linux next-20161006 and didn't find any issue.
Quoted 10 lines
Quoted 3 lines
Thanks a lot, really!
1. What's the size of your ocfs2 disk? My disk is 200G.
212G
Quoted 2 lines
2. Did you run discontig block group test with multiple nodes? with this option:
Yes, but i don't know what that option is.
Quoted 1 line
" -m ocfs2cts1,ocfs2cts2"
ocfs2ctsX is the host name of cluster nodes. Discontig bg testcase will run in local mode if without
this option.
Thanks
Eric
Quoted 93 lines
Quoted 2 lines
3. Then, I am using fs/dlm. That's a different point.
Yes, that deserve a look since your issue is cluster locking hung.
Thanks,
Junxiao.Quoted 86 lines
Thanks,
EricQuoted 83 lines
Thanks,
Junxiao.Quoted 80 lines
Thanks,
EricQuoted 77 lines · Eric Ren
Hi Junxiao,
Quoted 34 lines
Hi Eric,
Quoted 31 lines · Eric Ren
Hi Junxiao,
As the subject, the testing hung there on a kernel without your patches:
"ocfs2: revert using
ocfs2_acl_chmodto avoid inode cluster lock hang"
and
"ocfs2: fixposix_acl_createdeadlock"The stack trace is:
``` ocfs2cts1:~ # pstree -pl 24133 discontig_runne(24133)???activate_discon(21156)???mpirun(15146)???fillup_contig_b(15149)???sudo(15231)???chmod(15232) ocfs2cts1:~ # pgrep -a chmod 15232 /bin/chmod -R 777 /mnt/ocfs2 ocfs2cts1:~ # cat /proc/15232/stack [<ffffffffa05377ef>] __ocfs2_cluster_lock.isra.39+0x1bf/0x620 [ocfs2] [<ffffffffa053856d>] ocfs2_inode_lock_full_nested+0x12d/0x840 [ocfs2] [<ffffffffa0538dbb>] ocfs2_inode_lock_atime+0xcb/0x170 [ocfs2] [<ffffffffa0531e61>] ocfs2_readdir+0x41/0x1b0 [ocfs2] [<ffffffff8120d03c>] iterate_dir+0x9c/0x110 [<ffffffff8120d453>] SyS_getdents+0x83/0xf0 [<ffffffff815e126e>] entry_SYSCALL_64_fastpath+0x12/0x6d [<ffffffffffffffff>] 0xffffffffffffffff ```Quoted 4 lines
Quoted 1 line
Do you think this issue can be fixed by your patches?
Looks not. Those two patches are to fix recursive locking deadlock. But
from above call trace, there is no recursive lock.Sorry, the call trace on another node was missing. Here it is:
ocfs2cts2:~ # pstree -lp sshd(4292)???sshd(4745)???sshd(4753)???bash(4754)???orted(4781)???fillup_contig_b(4782)???sudo(4864)???chmod(4865)
ocfs2cts2:~ # cat
/proc/4865/stack[<ffffffffa053e7ef>] __ocfs2_cluster_lock.isra.39+0x1bf/0x620 [ocfs2] [<ffffffffa053f56d>] ocfs2_inode_lock_full_nested+0x12d/0x840 [ocfs2] [<ffffffffa059c860>] ocfs2_iop_get_acl+0x40/0xf0 [ocfs2] [<ffffffff812044e6>] generic_permission+0x166/0x1c0 [<ffffffffa0542aca>] ocfs2_permission+0xaa/0xd0 [ocfs2] [<ffffffff81204596>] __inode_permission+0x56/0xb0 [<ffffffff812068fa>] link_path_walk+0x29a/0x560 [<ffffffff81206cbf>] path_lookupat+0x7f/0x110 [<ffffffff8120929c>] filename_lookup+0x9c/0x150 [<ffffffff811f96c3>] SyS_fchmodat+0x33/0x90 [<ffffffff815e126e>] entry_SYSCALL_64_fastpath+0x12/0x6d[<ffffffffffffffff>]
0xffffffffffffffffThanks,
EricQuoted 8 lines
Thanks,
Junxiao.Quoted 6 lines
I will try your patches later, but I am little worried the possibility
of reproduction may not be 100%.
So ask you to confirm;-)Eric
_______________________________________________
Ocfs2-devel mailing list
Ocfs2-devel at oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-devel
Quoted 29 lines · Eric Ren
Hi,
Quoted 26 lines · Junxiao Bi
Quoted 13 lines · Eric Ren
Hi Junxiao,
Quoted 10 lines · Junxiao Bi
Quoted 9 lines · Eric Ren
Hi,
When backporting those patches, I find that they are already in our product kernel, maybe
via "stable kernel" policy, although our product kernel is 4.4 while the
patches were merged
into 4.6.Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Seems it's another deadlock that happens when doing
chmod -R 777 /mnt/ocfs2
among mutilple nodes at the same time.Yes, but i just finish running ocfs2 full test on linux next-20161006 and didn't find any issue.
Thanks a lot, really!
1. What's the size of your ocfs2 disk? My disk is 200G.
212G
Quoted 2 lines
2. Did you run discontig block group test with multiple nodes? with this option:
Quoted 7 lines
Quoted 3 lines
Yes, but i don't know what that option is.
Quoted 1 line
" -m ocfs2cts1,ocfs2cts2"ocfs2ctsX is the host name of cluster nodes. Discontig bg testcase will run in local mode if without
this option.
It had, 3 machines were used. I first thought ocfs2cts1,ocfs2cts2 is the option.
Thanks,
Junxiao.
Quoted 102 lines
Thanks
EricQuoted 97 lines
Quoted 2 lines
3. Then, I am using fs/dlm. That's a different point.
Yes, that deserve a look since your issue is cluster locking hung.
Thanks,
Junxiao.Quoted 90 lines
Thanks,
EricQuoted 87 lines
Thanks,
Junxiao.Quoted 84 lines
Thanks,
EricQuoted 81 lines · Eric Ren
Hi Junxiao,
Quoted 37 lines
Hi Eric,
Quoted 34 lines · Eric Ren
Hi Junxiao,
As the subject, the testing hung there on a kernel without your patches:
"ocfs2: revert using
ocfs2_acl_chmodto avoid inode cluster lock hang"
and
"ocfs2: fixposix_acl_createdeadlock"The stack trace is:
``` ocfs2cts1:~ # pstree -pl 24133 discontig_runne(24133)???activate_discon(21156)???mpirun(15146)???fillup_contig_b(15149)???sudo(15231)???chmod(15232) ocfs2cts1:~ # pgrep -a chmod 15232 /bin/chmod -R 777 /mnt/ocfs2 ocfs2cts1:~ # cat /proc/15232/stack [<ffffffffa05377ef>] __ocfs2_cluster_lock.isra.39+0x1bf/0x620 [ocfs2] [<ffffffffa053856d>] ocfs2_inode_lock_full_nested+0x12d/0x840 [ocfs2] [<ffffffffa0538dbb>] ocfs2_inode_lock_atime+0xcb/0x170 [ocfs2] [<ffffffffa0531e61>] ocfs2_readdir+0x41/0x1b0 [ocfs2] [<ffffffff8120d03c>] iterate_dir+0x9c/0x110 [<ffffffff8120d453>] SyS_getdents+0x83/0xf0 [<ffffffff815e126e>] entry_SYSCALL_64_fastpath+0x12/0x6d [<ffffffffffffffff>] 0xffffffffffffffff ```Quoted 4 lines
Quoted 1 line
Do you think this issue can be fixed by your patches?
Looks not. Those two patches are to fix recursive locking deadlock. But
from above call trace, there is no recursive lock.Sorry, the call trace on another node was missing. Here it is:
ocfs2cts2:~ # pstree -lp sshd(4292)???sshd(4745)???sshd(4753)???bash(4754)???orted(4781)???fillup_contig_b(4782)???sudo(4864)???chmod(4865)
ocfs2cts2:~ # cat
/proc/4865/stack[<ffffffffa053e7ef>] __ocfs2_cluster_lock.isra.39+0x1bf/0x620 [ocfs2] [<ffffffffa053f56d>] ocfs2_inode_lock_full_nested+0x12d/0x840 [ocfs2] [<ffffffffa059c860>] ocfs2_iop_get_acl+0x40/0xf0 [ocfs2] [<ffffffff812044e6>] generic_permission+0x166/0x1c0 [<ffffffffa0542aca>] ocfs2_permission+0xaa/0xd0 [ocfs2] [<ffffffff81204596>] __inode_permission+0x56/0xb0 [<ffffffff812068fa>] link_path_walk+0x29a/0x560 [<ffffffff81206cbf>] path_lookupat+0x7f/0x110 [<ffffffff8120929c>] filename_lookup+0x9c/0x150 [<ffffffff811f96c3>] SyS_fchmodat+0x33/0x90 [<ffffffff815e126e>] entry_SYSCALL_64_fastpath+0x12/0x6d[<ffffffffffffffff>]
0xffffffffffffffffThanks,
EricQuoted 8 lines
Thanks,
Junxiao.Quoted 6 lines
I will try your patches later, but I am little worried the possibility
of reproduction may not be 100%.
So ask you to confirm;-)Eric
_______________________________________________
Ocfs2-devel mailing list
Ocfs2-devel at oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-devel
Hello Guys,
This is indeed another deadlock caused by:
Commit 743b5f1434f5 ("ocfs2: take inode lock in ocfs2_iop_set/get_acl()")The reason had been explained well by Tariq Saeed in this thread:
https://oss.oracle.com/pipermail/ocfs2-devel/2015-September/011085.html
For this case, the ocfs2_inode_lock() is misused recursively as below:
do_sys_open
do_filp_open
path_openat
may_open
inode_permission
__inode_permission
ocfs2_permission <====== ocfs2_inode_lock()
generic_permission
get_acl
ocfs2_iop_get_acl <====== ocfs2_inode_lock()
ocfs2_inode_lock_full_nested <===== deadlock if a remote EX request comes between two ocfs2_inode_lock()
Welcome any thoughts to deal with this issue!
Thanks,
Eric
Quoted 70 lines · Eric Ren
Hi Junxiao,
Quoted 30 lines
Hi Eric,
Quoted 27 lines · Eric Ren
Hi Junxiao,
As the subject, the testing hung there on a kernel without your patches:
"ocfs2: revert using
ocfs2_acl_chmodto avoid inode cluster lock hang" and
"ocfs2: fixposix_acl_createdeadlock"The stack trace is:
``` ocfs2cts1:~ # pstree -pl 24133 discontig_runne(24133)???activate_discon(21156)???mpirun(15146)???fillup_contig_b(15149)???sudo(15231)???chmod(15232) ocfs2cts1:~ # pgrep -a chmod 15232 /bin/chmod -R 777 /mnt/ocfs2 ocfs2cts1:~ # cat /proc/15232/stack [<ffffffffa05377ef>] __ocfs2_cluster_lock.isra.39+0x1bf/0x620 [ocfs2] [<ffffffffa053856d>] ocfs2_inode_lock_full_nested+0x12d/0x840 [ocfs2] [<ffffffffa0538dbb>] ocfs2_inode_lock_atime+0xcb/0x170 [ocfs2] [<ffffffffa0531e61>] ocfs2_readdir+0x41/0x1b0 [ocfs2] [<ffffffff8120d03c>] iterate_dir+0x9c/0x110 [<ffffffff8120d453>] SyS_getdents+0x83/0xf0 [<ffffffff815e126e>] entry_SYSCALL_64_fastpath+0x12/0x6d [<ffffffffffffffff>] 0xffffffffffffffff ```Quoted 3 lines
Quoted 1 line
Do you think this issue can be fixed by your patches?
Looks not. Those two patches are to fix recursive locking deadlock. But from above call trace, there is no recursive lock.
Sorry, the call trace on another node was missing. Here it is:
ocfs2cts2:~ # pstree -lp sshd(4292)???sshd(4745)???sshd(4753)???bash(4754)???orted(4781)???fillup_contig_b(4782)???sudo(4864)???chmod(4865)
ocfs2cts2:~ # cat
/proc/4865/stack[<ffffffffa053e7ef>] __ocfs2_cluster_lock.isra.39+0x1bf/0x620 [ocfs2] [<ffffffffa053f56d>] ocfs2_inode_lock_full_nested+0x12d/0x840 [ocfs2] [<ffffffffa059c860>] ocfs2_iop_get_acl+0x40/0xf0 [ocfs2] [<ffffffff812044e6>] generic_permission+0x166/0x1c0 [<ffffffffa0542aca>] ocfs2_permission+0xaa/0xd0 [ocfs2] [<ffffffff81204596>] __inode_permission+0x56/0xb0 [<ffffffff812068fa>] link_path_walk+0x29a/0x560 [<ffffffff81206cbf>] path_lookupat+0x7f/0x110 [<ffffffff8120929c>] filename_lookup+0x9c/0x150 [<ffffffff811f96c3>] SyS_fchmodat+0x33/0x90 [<ffffffff815e126e>] entry_SYSCALL_64_fastpath+0x12/0x6d[<ffffffffffffffff>]
0xffffffffffffffffThanks,
EricQuoted 7 lines
Thanks,
Junxiao.Quoted 5 lines
I will try your patches later, but I am little worried the possibility of reproduction may not be 100%.
So ask you to confirm;-)Eric
_______________________________________________
Ocfs2-devel mailing list
Ocfs2-devel at oss.oracle.com
https://oss.oracle.com/mailman/listinfo/ocfs2-devel