Re: [PATCH] pull scsi_scan_host out of scsi_add_host

Oliver Neukum
2003-07-08T08:49:33Z

Am Dienstag, 8. Juli 2003 10:03 schrieb Mike Anderson:
> Christoph Hellwig [hch@lst.de] wrote:
> > As Douglas mentioned on this list a while ago there's hardware these
> > days where we don't want to automatically perform an initial bus scan
> > in scsi_add_host. Currently we only have ieee1394 in the tree but
> > I can imagine more uses like iscsi or certain fc setups.
> >
> > This patch removes the call to scsi_scan_host from scsi_add_host
> > and moves it into the drivers that want in.
>
> Would we want to make a symmetric interface and pull the
> unscan out of scsi_remove_host also?

Unless you are talking about multipath, you have to forget
all devices connected to a controller, so what sense would
it make?

Philosophically speaking, scanning is an operation that cannot
be simply undone. You can undo device/driver bindings but you
cannot undo a bus scan.

Regards
Oliver