[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20161210073245.GA19610@kroah.com>
Date: Sat, 10 Dec 2016 08:32:45 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Vladimir Zapolskiy <vz@...ia.com>
Cc: Rob Herring <robh@...nel.org>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] driver core: flush async calls before testing driver
removal
On Sat, Dec 10, 2016 at 02:15:19AM +0200, Vladimir Zapolskiy wrote:
> If CONFIG_DEBUG_TEST_DRIVER_REMOVE option is enabled a number of false
> positives are reported for ATA controller drivers, because ATA port
> probes are done asynchronously, and the same problem may also touch
> other asynchronously probed drivers.
>
> To reduce the rate of false reports on boot call async_synchronize_full()
> before attempting to remove a driver, the same is done in delete_module()
> syscall for all possible drivers and in __device_release_driver() function
> for asynchronously probed drivers.
__device_release_driver() already calls this function, why call it
again?
thanks,
greg k-h
Powered by blists - more mailing lists