Re: [PATCH] driver core: flush async calls before testing driver removal

From: Tejun Heo
Date: Mon Dec 12 2016 - 13:46:14 EST


On Mon, Dec 12, 2016 at 12:33:36PM -0600, Rob Herring wrote:
> Maybe I'm confused, but don't you need this for all drivers? You need
> sync the async SCSI scanning to the driver remove regardless of async
> probe. The driver core synchronization is only for synchronizing the
> remove with probe AIUI.

Heh, I'm not quite following what you mean. Can you please elaborate?
Also, on the second thought, it probably would be better to flush
async calls before unbind. It's fragile to require indivdiual drivers
to do that and I can't think of benefits of doing so. It's not like
the unbind / unload paths are hot in any way.