The idea of adding a timeout parameter sounds good to me. I think it's safe to call bdrv_drained_end() after the timeout fails, but I'm not 100% sure. Maybe Kevin has thoughts on this.
I left comments on the patches. Stefan
signature.asc
Description: PGP signature