public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* final scsi_host_put in ->remove()?
@ 2003-09-29 11:48 Zwane Mwaikambo
  2003-09-29 13:41 ` Jamie Lenehan
  0 siblings, 1 reply; 3+ messages in thread
From: Zwane Mwaikambo @ 2003-09-29 11:48 UTC (permalink / raw)
  To: linux-scsi; +Cc: zwane

Hi,
	Considering an updated scsi driver, where is the final 
scsi_host_put which eventually frees the Scsi_Host done?

An updated driver such as NCR_D700 has the following in it's ->remove() 
path. Whilst sym53c8xx_2 doesn't have any scsi_remove_host at all, dc395x.c does

static void NCR_D700_remove_one(struct Scsi_Host *host)
{
	scsi_remove_host(host);
	NCR_700_release(host);
	kfree((struct NCR_700_Host_Parameters *)host->hostdata[0]);
	free_irq(host->irq, host);
	release_region(host->base, 64);
}

Is it possible that scsi_remove_host does the final put? In which case 
using the host pointer afterwards wouldn't be safe. Otherwise wouldn't a 
scsi_host_put be required in that function? The scsi_remove_host section 
in Documentation/scsi/scsi_mid_low_api.txt appears to suggest the latter.

Thanks in advance for any clarification.

	Zwane

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

end of thread, other threads:[~2003-09-29 20:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-29 11:48 final scsi_host_put in ->remove()? Zwane Mwaikambo
2003-09-29 13:41 ` Jamie Lenehan
2003-09-29 20:46   ` Zwane Mwaikambo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox