Re: [PATCH v11 4/9] Disallow changing the device state via sysfs into "deleted"

2013-06-25 Thread James Bottomley
On Tue, 2013-06-25 at 10:41 +0200, Bart Van Assche wrote: > On 06/24/13 19:59, James Bottomley wrote: > > On Wed, 2013-06-12 at 14:53 +0200, Bart Van Assche wrote: > >> Changing the state of a SCSI device via sysfs into "cancel" or > >> "deleted" prevents removal of these devices by scsi_remove_hos

Re: [PATCH v11 4/9] Disallow changing the device state via sysfs into "deleted"

2013-06-25 Thread Bart Van Assche
On 06/24/13 19:59, James Bottomley wrote: On Wed, 2013-06-12 at 14:53 +0200, Bart Van Assche wrote: Changing the state of a SCSI device via sysfs into "cancel" or "deleted" prevents removal of these devices by scsi_remove_host(). Hence do not allow this. Also, introduce the symbolic name INVALID

Re: [PATCH v11 4/9] Disallow changing the device state via sysfs into "deleted"

2013-06-24 Thread James Bottomley
On Wed, 2013-06-12 at 14:53 +0200, Bart Van Assche wrote: > Changing the state of a SCSI device via sysfs into "cancel" or > "deleted" prevents removal of these devices by scsi_remove_host(). > Hence do not allow this. Also, introduce the symbolic name > INVALID_SDEV_STATE, representing a value dif

Re: [PATCH v11 4/9] Disallow changing the device state via sysfs into "deleted"

2013-06-23 Thread Bart Van Assche
On 06/24/13 03:05, Mike Christie wrote: On 6/12/13 7:53 AM, Bart Van Assche wrote: Changing the state of a SCSI device via sysfs into "cancel" or "deleted" prevents removal of these devices by scsi_remove_host(). Hence do not allow this. Also, introduce the symbolic name INVALID_SDEV_STATE, repr

Re: [PATCH v11 4/9] Disallow changing the device state via sysfs into "deleted"

2013-06-23 Thread Mike Christie
On 6/12/13 7:53 AM, Bart Van Assche wrote: Changing the state of a SCSI device via sysfs into "cancel" or "deleted" prevents removal of these devices by scsi_remove_host(). Hence do not allow this. Also, introduce the symbolic name INVALID_SDEV_STATE, representing a value different from any valid

[PATCH v11 4/9] Disallow changing the device state via sysfs into "deleted"

2013-06-12 Thread Bart Van Assche
Changing the state of a SCSI device via sysfs into "cancel" or "deleted" prevents removal of these devices by scsi_remove_host(). Hence do not allow this. Also, introduce the symbolic name INVALID_SDEV_STATE, representing a value different from any valid SCSI device state. Update scsi_device_set_st