[Bugs] [Bug 1733166] New: potential deadlock while processing callbacks in gfapi
bugzilla at redhat.com
bugzilla at redhat.com
Thu Jul 25 10:01:57 UTC 2019
https://bugzilla.redhat.com/show_bug.cgi?id=1733166
Bug ID: 1733166
Summary: potential deadlock while processing callbacks in gfapi
Product: GlusterFS
Version: mainline
Hardware: All
OS: All
Status: NEW
Component: libgfapi
Severity: high
Assignee: bugs at gluster.org
Reporter: skoduri at redhat.com
QA Contact: bugs at gluster.org
CC: bugs at gluster.org
Target Milestone: ---
Classification: Community
Description of problem:
While running parallel I/Os involving many files on nfs-ganesha mount, have hit
below deadlock in the nfs-ganesha process.
epoll thread:
....glfs_cbk_upcall_data->upcall_syncop_args_init->glfs_h_poll_cache_invalidation->glfs_h_find_handle->priv_glfs_active_subvol->glfs_lock
(waiting on lock)
I/O thread:
...glfs_h_stat->glfs_resolve_inode->__glfs_resolve_inode (at this point we
acquired glfs_lock) -> ...->glfs_refresh_inode_safe->syncop_lookup
To summarize-
I/O thread which acquired glfs_lock are waiting for epoll threads to receive
response where as epoll threads are waiting for I/O threads to release lock.
Similar issue was identified earlier (bug1693575).
There could be other issues at different layers depending on how client xlators
choose to process these callbacks.
The correct way of avoiding or fixing these issues is to re-design upcall model
which is to use different sockets for callback communication instead of using
same epoll threads. Raised github issue for that -
https://github.com/gluster/glusterfs/issues/697
Since it may take a while, raising this BZ to provide a workaround fix in gfapi
layer for now
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1.
2.
3.
Actual results:
Expected results:
Additional info:
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list