From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rolf Eike Beer Subject: Re: [PATCH v7 3/9] Introduce =?UTF-8?Q?scsi=5Fdevice=5Fbeing=5Fre?= =?UTF-8?Q?moved=28=29?= Date: Fri, 07 Dec 2012 09:40:10 +0100 Message-ID: References: <50C0BEEE.4040907@acm.org> <50C0BFD5.9030604@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mail.sf-mail.de ([62.27.20.61]:49059 "EHLO mail.sf-mail.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754666Ab2LGIkO (ORCPT ); Fri, 7 Dec 2012 03:40:14 -0500 In-Reply-To: <50C0BFD5.9030604@acm.org> Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Bart Van Assche Cc: linux-scsi , James Bottomley , Mike Christie , Tejun Heo , Chanho Min , Hannes Reinecke > diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h > index 55367b0..767dd16 100644 > --- a/include/scsi/scsi_device.h > +++ b/include/scsi/scsi_device.h > @@ -442,6 +442,11 @@ static inline int scsi_device_created(struct > scsi_device *sdev) > return sdev->sdev_state == SDEV_CREATED || > sdev->sdev_state == SDEV_CREATED_BLOCK; > } > +static inline int scsi_device_being_removed(struct scsi_device > *sdev) > +{ > + return sdev->sdev_state == SDEV_CANCEL || > + sdev->sdev_state == SDEV_DEL; > +} > > /* accessor functions for the SCSI parameters */ > static inline int scsi_device_sync(struct scsi_device *sdev) Newline missing before the new function. Greetings, Eike