Re: Questions about scsi_target_reap and starget/sdev lifecyle

Alan Stern
2005-06-15T20:07:34Z

On Tue, 14 Jun 2005, James Bottomley wrote:

> > Won't this cause trouble in a hotplug environment? A target or a LUN can
> > be removed, and while it's still on the host's list a new target or LUN
> > could be discovered with the same ID. Having multiple entries on a list
> > with the same ID sounds like a bad idea. Is there some reason why these
> > things aren't taken off their list as soon as they are removed?
>
> It shouldn't, that's what rescan is about. If the device isn't gone,
> you get the old device back again.

Is this wise? With hotplugging, it's possible that the new device is
physically different from the one that was there before. You don't want
to re-use an old structure with stale data in it when that happens.

Alan Stern