From: James Smart <james.smart@emulex.com>
To: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: "linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
"michaelc@cs.wisc.edu" <michaelc@cs.wisc.edu>
Subject: Re: [PATCH 5/7] lpfc 8.3.13: BSG management fixes
Date: Fri, 14 May 2010 09:46:16 -0400 [thread overview]
Message-ID: <4BED5428.8090703@emulex.com> (raw)
In-Reply-To: <20100514183051S.fujita.tomonori@lab.ntt.co.jp>
Slightly different. I believe it's ok relative to when there's a BSG request
in flight. But in this case there isn't, but there is a program w/ the bsg
node open, and the driver/transport/etc can all be unloaded as bsg_open
doesn't take a reference anywhere.
I look at it the other day, and it appears to be an issue with bsg itself. It
should just take a reference to the bsg class dev in open, and release it in
release. But the bsg_unregister_queue() path doesn't track whether the node
was open or not and the teardown needs to be split up so that it really is
reference based.
-- james s
FUJITA Tomonori wrote:
> On Wed, 12 May 2010 09:32:14 -0400
> James Smart <james.smart@emulex.com> wrote:
>
>> - Add reference counting to prevent module removal when
>> there are outstanding BSG requests.
>
> Didn't I worked on it about scsi_transport_sas?
>
> bsg holds the ref count on the device that passed in
> bsg_register_queue() while there are outstanding bsg requests. It is
> supposed to prevent the module of the hold device from be removed.
>
> Do you get the oops message?
>
next prev parent reply other threads:[~2010-05-14 13:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-12 13:32 [PATCH 5/7] lpfc 8.3.13: BSG management fixes James Smart
2010-05-12 17:38 ` Mike Christie
2010-05-12 19:00 ` James Smart
2010-05-14 9:29 ` FUJITA Tomonori
2010-05-14 13:46 ` James Smart [this message]
2010-05-14 14:30 ` James Smart
2010-05-17 6:24 ` FUJITA Tomonori
2010-05-19 18:35 ` James Smart
2010-05-20 11:41 ` FUJITA Tomonori
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=4BED5428.8090703@emulex.com \
--to=james.smart@emulex.com \
--cc=fujita.tomonori@lab.ntt.co.jp \
--cc=linux-scsi@vger.kernel.org \
--cc=michaelc@cs.wisc.edu \
/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;
as well as URLs for NNTP newsgroup(s).