Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5401974imu; Tue, 13 Nov 2018 06:07:46 -0800 (PST) X-Google-Smtp-Source: AJdET5e58afKc6RCKaJaQmz6BcE4NbUHDpRbhJT3TiHtdzcvdPmeB5x7nbH/JCth7qkMu97BqT2I X-Received: by 2002:a17:902:6909:: with SMTP id j9-v6mr5051508plk.221.1542118066441; Tue, 13 Nov 2018 06:07:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542118066; cv=none; d=google.com; s=arc-20160816; b=ublXvv8dyHi12N8xAbW8hymzVlXXgt+HBCZFEsTWkebbEeCKrFUalmbcZOuTKLJwdp FU7JDiTntI9O2ua1hjxNrH30AzV8aXRFKRYPlbmTnC0gIbweHMTBS6wa64nlKgiklHji Xmg31vnotyb79mFweue212fzeKQMtVJkU1uZxgzbYb5U8y+RiArjkt5dyuV6LFF7kkHT mb6VGDGfHjtk10EVtXXIZILMh4TEzxg/udj2p+1uKE9k5OmFlRgD4KexY9k1MwU9piJT CkIT1u4YVJvzjgl74IAS52JonP1SHZPVNoKXUrQA40TiJaXMJcKO8D/0Gh3mEzbBLV2b jrlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:subject:cc:to:from:date; bh=KmPoI0VE6eMwj5dU2WQYlpwSiqR4dbYm9y8zWmh9NFw=; b=Wd42zjyBP5biNCgwwweBy9rxvUh/9zWV+L84bD2l3raT99SVXm1DnrYBMcxPpU2goX OepBVGmWnnta745/hIG5eqEYhc5wS+j3DjGpt1aPOX4U4vsm0SjrNrPFc1yGEypISjKz 2SWjk1r7RNJtsLGzhF3GqBGLTkeojyDAFKyYmDaLt9ax2U1mqVsOqMi95wUwK0CrPttq E4xbWq/pqM+e5LjHW50JYDVHFAuGPY3yYHSQV3O1TxUlRNk8nev0q2Oh4divzrFd/OKO +Dt6BwwcMsapa8KPwt627Q1A1Pl956EZLLjasW6hSKQR3dmbSyUgeui4BbSdmGNhA7fl aNRg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t4si4737555pgg.110.2018.11.13.06.07.30; Tue, 13 Nov 2018 06:07:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388186AbeKNAEU (ORCPT + 99 others); Tue, 13 Nov 2018 19:04:20 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:53952 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387519AbeKNAEU (ORCPT ); Tue, 13 Nov 2018 19:04:20 -0500 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wADE5gW5008644 for ; Tue, 13 Nov 2018 09:06:01 -0500 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0b-001b2d01.pphosted.com with ESMTP id 2nqxrhc55j-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 13 Nov 2018 09:05:58 -0500 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 13 Nov 2018 14:05:54 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 13 Nov 2018 14:05:52 -0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id wADE5pCk1573184 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 13 Nov 2018 14:05:51 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6003752054; Tue, 13 Nov 2018 14:05:51 +0000 (GMT) Received: from w530-pk1mzal (unknown [9.145.42.26]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTPS id 5707D5206C; Tue, 13 Nov 2018 14:05:51 +0000 (GMT) Received: from bblock by w530-pk1mzal with local (Exim 4.91) (envelope-from ) id 1gMZKA-0004T2-Jr; Tue, 13 Nov 2018 15:05:50 +0100 Date: Tue, 13 Nov 2018 15:05:50 +0100 From: Benjamin Block To: Christoph Hellwig Cc: axboe@kernel.dk, martin.petersen@oracle.com, ooo@electrozaur.com, Johannes Thumshirn , Benjamin Block , linux-scsi@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/8] bsg: refactor bsg_ioctl References: <20181111133211.13926-1-hch@lst.de> <20181111133211.13926-6-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181111133211.13926-6-hch@lst.de> User-Agent: Mutt/1.10.1 (2018-07-13) X-TM-AS-GCONF: 00 x-cbid: 18111314-0020-0000-0000-000002E7617F X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18111314-0021-0000-0000-000021367005 Message-Id: <20181113140550.GA7222@w530-pk1mzal> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-11-13_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1811130130 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 11, 2018 at 02:32:08PM +0100, Christoph Hellwig wrote: > Move all actual functionality into helpers, just leaving the dispatch > in this function. > > Signed-off-by: Christoph Hellwig > --- > block/bsg.c | 158 ++++++++++++++++++++++++---------------------------- > 1 file changed, 72 insertions(+), 86 deletions(-) > Looks fine to me. Did ran the same small test-tool I ran against Jens' patches, nothing broke. Reviewed-by: Benjamin Block Tested-by: Benjamin Block -- With Best Regards, Benjamin Block / Linux on IBM Z Kernel Development IBM Systems & Technology Group / IBM Deutschland Research & Development GmbH Vorsitz. AufsR.: Martina Koederitz / Gesch?ftsf?hrung: Dirk Wittkopp Sitz der Gesellschaft: B?blingen / Registergericht: AmtsG Stuttgart, HRB 243294