From: Christoph Hellwig <hch@infradead.org>
To: Heiko Carstens <Heiko.Carstens@de.ibm.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: linux-2.6.0-test11 [BUG] -- scsi_add/remove_device - out of memory
Date: Wed, 10 Dec 2003 15:09:49 +0000 [thread overview]
Message-ID: <20031210150949.A2855@infradead.org> (raw)
In-Reply-To: <OFE5F05878.12C1E995-ONC1256DF8.004D7413-C1256DF8.004E538F@de.ibm.com>; from Heiko.Carstens@de.ibm.com on Wed, Dec 10, 2003 at 03:14:19PM +0100
On Wed, Dec 10, 2003 at 03:14:19PM +0100, Heiko Carstens wrote:
> >Sounds there's a scsi_device_put missing somewherein your driver..
>
> Why should I be supposed to issue a scsi_device_put or scsi_device_get in
> my
> device driver?
scsi_remove_device just marks the device deleted, the memory is only freed
after the final scsi_device_put. That might be the one your driver issues
after it's completly done with the device or for example the one when the last
sysfs file referring to the device is closed. Lifetime of structscsi_device
is not under control of the driver.
next parent reply other threads:[~2003-12-10 15:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <OFE5F05878.12C1E995-ONC1256DF8.004D7413-C1256DF8.004E538F@de.ibm.com>
2003-12-10 15:09 ` Christoph Hellwig [this message]
2004-01-14 10:39 linux-2.6.0-test11 [BUG] -- scsi_add/remove_device - out of memory Heiko Carstens
-- strict thread matches above, loose matches on Subject: below --
2004-01-13 9:44 Heiko Carstens
2004-01-13 16:26 ` Mike Anderson
2004-01-13 18:11 ` Mike Anderson
2003-12-10 14:18 Heiko Carstens
2003-12-10 9:12 Heiko Carstens
2003-12-10 14:02 ` Christoph Hellwig
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=20031210150949.A2855@infradead.org \
--to=hch@infradead.org \
--cc=Heiko.Carstens@de.ibm.com \
--cc=linux-scsi@vger.kernel.org \
/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