Skip to content

Deadlock fix for qmi client handle release - #13

Merged
Deepak Kumar Singh (quic-deesin) merged 2 commits into
mainfrom
development
Jan 5, 2026
Merged

Deepak Kumar Singh (quic-deesin) merged 2 commits into
mainfrom
development

Conversation

@quic-deesin

Copy link
Copy Markdown
Contributor

No description provided.

In qmi_client_release_async(), only hold clnt->lock long enough to mark
non-notifier clients as not accepting transactions, clean up pending
transactions, save the release callback, and clear clnt->xport_handle.
Call xport->ops->close() after dropping clnt->lock using the saved
xport_handle.

Moving xport->close() out of the client lock avoids a lock ordering
inversion with the control thread, which can hold xport_list_lock while
invoking CCI callbacks during transport teardown.

Signed-off-by: Pranav Mahesh Phansalkar <pranav.phansalkar@oss.qualcomm.com>
qcci: Remove client lock around xport close in release_async
@quic-deesin Deepak Kumar Singh (quic-deesin) changed the title Development Deadlock fix for qmi client handle release Jan 5, 2026
@quic-deesin
Deepak Kumar Singh (quic-deesin) merged commit 7684817 into main Jan 5, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants