> -----Original Message----- > From: Mike Christie [mailto:michaelc@xxxxxxxxxxx] > > > So during a clean shutdown are drivers supposed to remove > the targets by > > calling scsi_remove_target to remove the devices, then > remove the rports > > through the class? > > Or for the case where we are stopping a host (rmmod or single > host stop > like with fcoe), should drivers call Yes - the steps below is what the drivers do today. And this does all work without failing the cache sync (unless something's changed recently in the midlayer above us). > > 1. fc_remove_host() > This could be modified to cleanup shutdown targets then > remove rports. > We could then have a rport shutdown callback which the class > could call > and drivers could cleanup and shutdown the rport here before > it is freed. Is this related to your new scsi-target block code ? Yes - agree with your comment - we can change it so that it cleansup the blocked target, then terminates the rport. > > 2. scsi_remove_host() > > 3. cleanup internal host resources. > > 4. scsi_put_host(). > -- james -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html