Return-Path: Received: from mx2.suse.de ([195.135.220.15]:53851 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S938289AbdEXFsN (ORCPT ); Wed, 24 May 2017 01:48:13 -0400 Subject: Re: [PATCH 01/31] Split scsi_internal_device_block() To: Bart Van Assche , "Martin K . Petersen" , James Bottomley Cc: linux-scsi@vger.kernel.org, linux-block@vger.kernel.org, Christoph Hellwig , Hannes Reinecke , Johannes Thumshirn , Sreekanth Reddy References: <20170524003420.5381-1-bart.vanassche@sandisk.com> <20170524003420.5381-2-bart.vanassche@sandisk.com> From: Hannes Reinecke Message-ID: Date: Wed, 24 May 2017 07:48:10 +0200 MIME-Version: 1.0 In-Reply-To: <20170524003420.5381-2-bart.vanassche@sandisk.com> Content-Type: text/plain; charset=utf-8 Sender: linux-block-owner@vger.kernel.org List-Id: linux-block@vger.kernel.org On 05/24/2017 02:33 AM, Bart Van Assche wrote: > Instead of passing a "wait" argument to scsi_internal_device_block(), > split this function into a function that waits and a function that > doesn't wait. This will make it easier to serialize SCSI device state > changes through a mutex. > > Signed-off-by: Bart Van Assche > Cc: Christoph Hellwig > Cc: Hannes Reinecke > Cc: Johannes Thumshirn > Cc: Sreekanth Reddy > --- > drivers/scsi/mpt3sas/mpt3sas_scsih.c | 4 +- > drivers/scsi/scsi_lib.c | 73 +++++++++++++++++++++++------------- > include/scsi/scsi_device.h | 2 +- > 3 files changed, 50 insertions(+), 29 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@suse.de +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg)