public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Vinod Koul <vinod.koul@intel.com>
To: Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
Cc: dan.j.williams@intel.com, dmaengine@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: dma_async_device_unregister called while 2 clients hold a reference
Date: Wed, 3 Jan 2018 09:21:06 +0530	[thread overview]
Message-ID: <20180103035106.GD18649@localhost> (raw)
In-Reply-To: <CAHO=5PG9tWsgjS6Hkkmz2Ss0BZbgLbrcmt8aJ036O2pR9YfaPQ@mail.gmail.com>

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

           reply	other threads:[~2018-01-03  3:47 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <CAHO=5PG9tWsgjS6Hkkmz2Ss0BZbgLbrcmt8aJ036O2pR9YfaPQ@mail.gmail.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180103035106.GD18649@localhost \
    --to=vinod.koul@intel.com \
    --cc=dan.j.williams@intel.com \
    --cc=dmaengine@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rayagonda.kokatanur@broadcom.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox