You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
We have been going over a few recent commits in libntirpc.
and we saw 1352b71
and it kind of looks like chunk_unref_locked can do a double unlock. we are not very familiar with that layer, but do you think that can happen? and if so is that ok?
The text was updated successfully, but these errors were encountered:
I think it's safe. get_lru_chunk_with_lock() only unlocks ioqh->qmutex if pthread_mutex_trylock() succeeded, which means that ioq was not already locked, and we succeeded in taking the lock. The correct thing to do then is unlock it. If trylock() fails (we didn't get the lock, it was already locked, potentially by us), then we skip to the next buffer.
Hi,
We have been going over a few recent commits in libntirpc.
and we saw 1352b71
and it kind of looks like chunk_unref_locked can do a double unlock. we are not very familiar with that layer, but do you think that can happen? and if so is that ok?
The text was updated successfully, but these errors were encountered: