From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bart Van Assche Subject: Re: [PATCH v11 4/9] Disallow changing the device state via sysfs into "deleted" Date: Mon, 24 Jun 2013 08:35:01 +0200 Message-ID: <51C7E895.7080809@acm.org> References: <51B86E26.6030108@acm.org> <51B86F40.3020407@acm.org> <51C79B3C.7070204@cs.wisc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from juliette.telenet-ops.be ([195.130.137.74]:33031 "EHLO juliette.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751473Ab3FXGfG (ORCPT ); Mon, 24 Jun 2013 02:35:06 -0400 In-Reply-To: <51C79B3C.7070204@cs.wisc.edu> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Mike Christie Cc: linux-scsi , Joe Lawrence , Tejun Heo , Chanho Min , David Milburn , James Bottomley , Hannes Reinecke 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, representing a value different from any valid > > Maybe it should be named SDEV_INVALID_STATE to match the current naming > scheme? Other than that, it seems ok. If nobody objects I will rename that new state into SDEV_INVALID_STATE. Bart.