From: Christoph Hellwig <hch@infradead.org>
To: Christoph Hellwig <hch@infradead.org>,
James Bottomley <James.Bottomley@steeleye.com>,
"Justin T. Gibbs" <gibbs@scsiguy.com>,
Doug Ledford <dledford@redhat.com>,
Matthew Wilcox <willy@debian.org>,
Marcelo Tosatti <marcelo@conectiva.com.br>,
linux-scsi mailing list <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH] sym53c8xx PPR negotiation fix
Date: Thu, 6 Nov 2003 09:07:27 +0000 [thread overview]
Message-ID: <20031106090727.A14452@infradead.org> (raw)
In-Reply-To: <20031106090408.GA1398@beaverton.ibm.com>; from andmike@us.ibm.com on Thu, Nov 06, 2003 at 01:04:08AM -0800
> @@ -282,24 +301,9 @@ out:
> **/
> void scsi_free_sdev(struct scsi_device *sdev)
> {
> - unsigned long flags;
> -
> - spin_lock_irqsave(sdev->host->host_lock, flags);
> - list_del(&sdev->siblings);
> - list_del(&sdev->same_target_siblings);
> - spin_unlock_irqrestore(sdev->host->host_lock, flags);
> -
> - if (sdev->request_queue)
> - scsi_free_queue(sdev->request_queue);
> -
> - spin_lock_irqsave(sdev->host->host_lock, flags);
> - list_del(&sdev->starved_entry);
> - if (sdev->single_lun && --sdev->sdev_target->starget_refcnt == 0)
> - kfree(sdev->sdev_target);
> - spin_unlock_irqrestore(sdev->host->host_lock, flags);
> -
> - kfree(sdev->inquiry);
> - kfree(sdev);
> + if (sdev->host->hostt->slave_destroy)
> + sdev->host->hostt->slave_destroy(sdev);
> + put_device(&sdev->sdev_gendev);
The name of this function is rather misleading now, I'd rather kill
it and inline it into the caller - it's just three lines anyway.
Otherwise the patch looks ok to me, but I need to look at a tree
with it applied before coming to final conclusions..
--
Christoph Hellwig <hch@lst.de> - Freelance Hacker
Contact me for driver hacking and kernel development consulting
next prev parent reply other threads:[~2003-11-06 9:07 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-29 17:07 [PATCH] sym53c8xx PPR negotiation fix Doug Ledford
2003-10-29 17:11 ` James Bottomley
2003-10-29 17:50 ` Matthew Wilcox
2003-10-29 18:02 ` Doug Ledford
[not found] ` <20031029183159.GE25237@parcelfarce.linux.theplanet.co.uk>
2003-10-29 18:45 ` Doug Ledford
2003-10-31 23:55 ` Justin T. Gibbs
2003-10-31 23:55 ` James Bottomley
2003-11-01 0:08 ` Doug Ledford
2003-11-01 0:16 ` Justin T. Gibbs
2003-11-01 1:22 ` Mike Anderson
2003-11-01 2:34 ` James Bottomley
2003-11-01 3:09 ` Doug Ledford
2003-11-03 18:10 ` Mike Anderson
2003-11-04 7:10 ` Christoph Hellwig
2003-11-05 9:26 ` Mike Anderson
2003-11-06 9:04 ` Mike Anderson
2003-11-06 9:07 ` Christoph Hellwig [this message]
2003-11-06 9:21 ` Mike Anderson
2003-11-01 0:02 ` Doug Ledford
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=20031106090727.A14452@infradead.org \
--to=hch@infradead.org \
--cc=James.Bottomley@steeleye.com \
--cc=dledford@redhat.com \
--cc=gibbs@scsiguy.com \
--cc=linux-scsi@vger.kernel.org \
--cc=marcelo@conectiva.com.br \
--cc=willy@debian.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