Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion iocore/hostdb/HostDB.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1592,7 +1592,10 @@ HostDBContinuation::probeEvent(int /* event ATS_UNUSED */, Event *e)
EThread *t = e ? e->ethread : this_ethread();

MUTEX_TRY_LOCK(lock, action.mutex, t);
if (!lock.is_locked()) {
// Go ahead and grab the continuation mutex or just grab the action mutex again of there is no continuation mutex
MUTEX_TRY_LOCK(lock2, (action.continuation && action.continuation->mutex) ? action.continuation->mutex : action.mutex, t);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this only happen with the global session pool? I was talking to @zwoop about this earlier today.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have only tested with the global pool environment.

// Don't continue unless we have both mutexes
if (!lock.is_locked() || !lock2.is_locked()) {
mutex->thread_holding->schedule_in(this, HOST_DB_RETRY_PERIOD);
return EVENT_CONT;
}
Expand Down