Page MenuHomeFreeBSD

Check device revoke when during vmbus pcib attach
ClosedPublic

Authored by whu on Sep 20 2020, 8:06 AM.

Details

Summary

It is possible that the vmbus pcib channel is revoked during attach path. The attach path could be waiting for response from host and this response could never arrived since the channel has already been revoked from host point of view. Check this situation during wait complete and return failed if this happens.

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

whu requested review of this revision.Sep 20 2020, 8:06 AM

add saved_done to avoid missing wake-up.

revised wait_for_completion_timeout() call to avoid missing complete message

This revision was not accepted when it landed; it landed in state Needs Review.Thu, Oct 15, 5:57 AM
This revision was automatically updated to reflect the committed changes.