Re: [PATCH v7 4/9] Remove offline devices when removing a host

2012-12-07 Thread Bart Van Assche
On 12/07/12 16:33, Bart Van Assche wrote: On 12/07/12 16:10, Hannes Reinecke wrote: On 12/06/2012 04:55 PM, Bart Van Assche wrote: Currently __scsi_remove_device() skips devices that are visible and offline. Make sure that these devices get removed by changing their device state into SDEV_DEL a

Re: [PATCH v7 4/9] Remove offline devices when removing a host

2012-12-07 Thread Bart Van Assche
On 12/07/12 16:10, Hannes Reinecke wrote: On 12/06/2012 04:55 PM, Bart Van Assche wrote: Currently __scsi_remove_device() skips devices that are visible and offline. Make sure that these devices get removed by changing their device state into SDEV_DEL at the start of __scsi_remove_device(). Also

Re: [PATCH v7 4/9] Remove offline devices when removing a host

2012-12-07 Thread Hannes Reinecke
On 12/06/2012 04:55 PM, Bart Van Assche wrote: Currently __scsi_remove_device() skips devices that are visible and offline. Make sure that these devices get removed by changing their device state into SDEV_DEL at the start of __scsi_remove_device(). Also, avoid that __scsi_remove_device() gets ca

[PATCH v7 4/9] Remove offline devices when removing a host

2012-12-06 Thread Bart Van Assche
Currently __scsi_remove_device() skips devices that are visible and offline. Make sure that these devices get removed by changing their device state into SDEV_DEL at the start of __scsi_remove_device(). Also, avoid that __scsi_remove_device() gets called a second time for devices that are in state