All of lore.kernel.org
 help / color / mirror / Atom feed
* [hch@infradead.org: Re: [PATCH] fix 2.5 scsi queue depth setting]
@ 2002-11-06 21:05 Christoph Hellwig
  2002-11-06 21:20 ` Doug Ledford
  0 siblings, 1 reply; 3+ messages in thread
From: Christoph Hellwig @ 2002-11-06 21:05 UTC (permalink / raw)
  To: linux-scsi

Urgg, removed abit to much than just me from the cc line..

----- Forwarded message from Christoph Hellwig <hch@infradead.org> -----

Date: Wed, 6 Nov 2002 21:01:13 +0000
From: Christoph Hellwig <hch@infradead.org>
Subject: Re: [PATCH] fix 2.5 scsi queue depth setting
To: Patrick Mansfield <patmans@us.ibm.com>,
	James Bottomley <James.Bottomley@SteelEye.com>,
	inux-scsi@vger.kernel.org

On Wed, Nov 06, 2002 at 03:50:50PM -0500, Doug Ledford wrote:
> if(sdev->hostdata)
>   kfree(sdev->hostdata);

kfree(NULL) is fine, btw..

> sdev->hostdata = NULL;
> 
> after the slave_detach call.  The other option is to slightly refine the 
> slave_attach/slave_detach API to specificy that if your attach routine 
> allocates and hangs memory off of sdev->hostdata, then you *must* 
> implement a slave_detach() routine and you must free said memory yourself 
> (and NULL out the pointer to be safe).

I'm all for the second option, but I don't think we should specify the
NULLing out, the device will go away anyway.


----- End forwarded message -----

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-11-07  2:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-06 21:05 [hch@infradead.org: Re: [PATCH] fix 2.5 scsi queue depth setting] Christoph Hellwig
2002-11-06 21:20 ` Doug Ledford
2002-11-07  2:13   ` Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.