The while loop previous can only be break when ret == ETIMEDOUT. They
never produce EBUSY. Remove the deadcode here.
Details
Details
- Reviewers
kib
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 78141 Build 75024: arc lint + arc unit
Event Timeline
Comment Actions
I am not completely sure that EBUSY is not possible, because it can come from umtx_op(UMTX_OP_WAIT) when tid is also set to TID_TERMINATED. But indeed I do not think that it matter.
It could be that we should only execute 'else { ret = 0;' block when tid is TID_TERMINATED, and really check for ret != 0 in the if().