public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: dma_async_device_unregister called while 2 clients hold a reference
       [not found] <CAHO=5PG9tWsgjS6Hkkmz2Ss0BZbgLbrcmt8aJ036O2pR9YfaPQ@mail.gmail.com>
@ 2018-01-03  3:51 ` Vinod Koul
  0 siblings, 0 replies; only message in thread
From: Vinod Koul @ 2018-01-03  3:51 UTC (permalink / raw)
  To: Rayagonda Kokatanur; +Cc: dan.j.williams, dmaengine, linux-kernel

On Tue, Dec 26, 2017 at 10:37:13AM +0530, Rayagonda Kokatanur wrote:
> Hi All,
> 
> I am getting following error when I unload one of my dma client driver.
> When I looked further into dmaengine.c file I found that the error is
> because of WARN_ONCE in dma_async_device_unregister() api.
> 
> Is this error expected ?
> Why do we need that WARN_ONCE macro ? If I comment that, errors will vanish.
> Do I need to set anything in client driver before calling
> dma_async_device_unregister() api ?
> 
> 
> root@bcm958802a8021:~# rmmod bcm_sba_raid
> [ 357.891751] dma_async_device_unregister called while 2 clients hold a
> reference

that means you are trying to remove the module while two clients hold the
ref. You should first ensure the clients are unloaded and then your driver

IMO this is a valid warn.

-- 
~Vinod

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-01-03  3:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CAHO=5PG9tWsgjS6Hkkmz2Ss0BZbgLbrcmt8aJ036O2pR9YfaPQ@mail.gmail.com>
2018-01-03  3:51 ` dma_async_device_unregister called while 2 clients hold a reference Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox