Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp831448ybj; Tue, 5 May 2020 08:12:38 -0700 (PDT) X-Google-Smtp-Source: APiQypJ6z75z8bjl4ceJE72OJTn50nsD6qzwqvJBMchrjk6mLFWjx43A06srUs6j3YmC1551P+Kg X-Received: by 2002:a05:6402:204b:: with SMTP id bc11mr3095819edb.114.1588691557822; Tue, 05 May 2020 08:12:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588691557; cv=none; d=google.com; s=arc-20160816; b=kivxkMCnCzCUsENLnucvLS4oqAcOfp8Wf6aNsIJTVzUXBfZmimGg6AxoORqSUViV84 ou0cx79WPm8kbhNgRA/t2ghvowalxAbRwAtPqqlBGtAtCIpgcXGDlsKLmayUlZks94XZ 3iyAVeY3e83GPEDhTyxzff97wNixxsCX1l97WZTi61CHmNhZNhnoKbrIqTqu5eom05bM DaHfm79p5daZIonnXVAsUiFAIaAcTjemr1usKWuDn2EpFVvQKdJaAweWFyv75+TXwTqQ zT3+7NEG6n3EhiE8t0EhgekCGw99UjWAZ2piUvteRMLklXpupToFUwwuq3ytsDIw5ojo 417g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:subject:autocrypt:from:references:cc:to; bh=3ngae8IZgTOa2SJK9AiUC56Sk9DuyWx97sCmE9pZFwo=; b=Zn0YYMiLLTyDqPMf8UJvrE/7MVomNUP7Lefn2aQLLSGoFrkGbVnrBxKc0kvk3uyjuQ JWVGqIq+T5q6cuKQHg5zrVZA6mdeCV5J4Bj7cUxz4FULrLgkQomd9tH7dUtSgI694UJQ NfAbmFs2j+nKtiaclA3iyn4NQRlck18LntQacGNZ5t+p1vQL4Ia1/gHUjZP/cWzgf8gz 9QTcyAzfHE36h27alDfp7IMmXC5yxtQlCGlCEq4lWb/boIdWMkKdM6eUi+YpcBOpLvbE 4LR1hzSDonY8NwDUNi4zNmpBPmwUE96fC7Uxw+Q0Gh10fGBSkp/YadRHx8+4MrC1344E eNGQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id a6si1347433edv.395.2020.05.05.08.12.08; Tue, 05 May 2020 08:12:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1730204AbgEEPKK convert rfc822-to-8bit (ORCPT + 99 others); Tue, 5 May 2020 11:10:10 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:22764 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729349AbgEEPKJ (ORCPT ); Tue, 5 May 2020 11:10:09 -0400 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 045EYsYr040018; Tue, 5 May 2020 11:10:04 -0400 Received: from ppma05fra.de.ibm.com (6c.4a.5195.ip4.static.sl-reverse.com [149.81.74.108]) by mx0a-001b2d01.pphosted.com with ESMTP id 30u8sgva69-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 05 May 2020 11:10:02 -0400 Received: from pps.filterd (ppma05fra.de.ibm.com [127.0.0.1]) by ppma05fra.de.ibm.com (8.16.0.27/8.16.0.27) with SMTP id 045FA0QL021493; Tue, 5 May 2020 15:10:00 GMT Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by ppma05fra.de.ibm.com with ESMTP id 30s0g5jwnf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 05 May 2020 15:10:00 +0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 045F9v4T60883002 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 5 May 2020 15:09:57 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2796DA4055; Tue, 5 May 2020 15:09:57 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B191FA4040; Tue, 5 May 2020 15:09:56 +0000 (GMT) Received: from linux.fritz.box (unknown [9.145.182.49]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 5 May 2020 15:09:56 +0000 (GMT) To: Christoph Hellwig Cc: axboe@kernel.dk, linux-block@vger.kernel.org, hoeppner@linux.ibm.com, linux-s390@vger.kernel.org, heiko.carstens@de.ibm.com, gor@linux.ibm.com, borntraeger@de.ibm.com, linux-kernel@vger.kernel.org, Peter Oberparleiter References: <20200430111754.98508-1-sth@linux.ibm.com> <20200430111754.98508-2-sth@linux.ibm.com> <20200430131351.GA24813@lst.de> <4ab11558-9f2b-02ee-d191-c9a5cc38de0f@linux.ibm.com> <70f541fe-a678-8952-0753-32707d21e337@linux.ibm.com> <20200505124423.GA26313@lst.de> From: Stefan Haberland Autocrypt: addr=sth@linux.ibm.com; keydata= mQINBFtGV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Bt7V3wMS5ST1UpogtLaK4jdEy0hx 3mn6O084g01w6Y/rdWFVSWDh9oaQNmR7aeB8JDOklOPJCe0bBKFK0ZMF1Kz9AzFj/RFzWfB5 ABEBAAGJAiUEGAEIAA8FAltGVggCGwwFCQlmAYAACgkQ9KmDAON4ldGPmA/+L3V5wkmWZJjD ZJIvio/wHMoqObEG6MxsFvGEoSDJBBGQ5oTiysACFM2vkOaOhj2Izh2L+dbuKJIT0Qus0hUJ uEjGgIAXn7hYNeM1MMqSA81NEoCeUhNHeZudf5WSoglG3rUnxIXrnxfDkn8Vd36cinGejyrI qJoydRMpX48I3wJcyvZ8+xgM/LLlvXEH4BpuJL+vQkefJrn0R2vxTnHcj5TE1tKNwhI7/343 PNzhgHGYynjCbF4u9qpSqcJl/exFnRXaTH6POIbHXIRe8n4TfdXsOcbI3j/GUF0cXinkfxdt BWH5rC3Ng+EN3jkDo8N9qF7uEqN9rRaekqsO0jYMQJlfZeJSQH9KHD+wgZly9j6DmnGexbdB aJdzCtbIR+oJy0HjfwvIQrgp1pj0yvXeDsUHykATsORx0ZitlGUuU6tlAnbH346nNSDoklLI lEDvODTgpkhWDczM69MGKrFYgDcIqXZFWzea6Xq+cuGtGO5xV/4K+efWQovlIdv4mE4j2E2G yXj14Nuyh4wqdX9/yspSZCH1TCbXD9WEB5nQCQNAKzIB7YaTQBjFi1HFzGOGYteZGC37DJ6a xEMRG8/iNZSU4dSL+XsaTnUk5wzzSnz0QVOEOqRY5tkS3zpo9OUGevyR3R6bRqH3EaA5H1cS cH4TNHyhiR0KAbxE8qKx3Jc= Subject: Re: [PATCH 1/1] s390/dasd: remove ioctl_by_bdev from DASD driver Message-ID: Date: Tue, 5 May 2020 17:09:56 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200505124423.GA26313@lst.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Content-Language: en-US X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.676 definitions=2020-05-05_08:2020-05-04,2020-05-05 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 clxscore=1015 priorityscore=1501 adultscore=0 malwarescore=0 bulkscore=0 lowpriorityscore=0 mlxscore=0 impostorscore=0 phishscore=0 suspectscore=0 mlxlogscore=895 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2005050119 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 05.05.20 um 14:44 schrieb Christoph Hellwig: > On Mon, May 04, 2020 at 10:45:33AM +0200, Stefan Haberland wrote: >>> findthe corresponding device for example. Not sure if this is that easy. >> I did some additional research on this. >> What I could imagine: >> >> The gendisk->private_data pointer currently contains a pointer to >> the dasd_devmap structure. This one is also reachable by iterating >> over an exported dasd_hashlist. >> So I could export the dasd_hashlist symbol, iterate over it and try >> to find the dasd_devmap pointer I have from the gendisk->private_data >> pointer. >> This would ensure that the gendisk belongs to the DASD driver and I >> could use the additional information that is somehow reachable through >> the gendisk->private_data pointer. >> >> But again, I am not sure if this additional code and effort is needed. >> From my point of view checking the gendisk->major for DASD_MAJOR is >> OK to ensure that the device belongs to the DASD driver. > With CONFIG_DEBUG_BLOCK_EXT_DEVT you can't rely on major numbers. OK, thanks for the hint.I did not have this in mind. And I still have to look up how this is working at all. But isn't this only a real issue for devices with more than 16 minors or partitions? So it should not be a problem for DASDs with our limit of 3 partitions and the fixed amount of minors, right? Just tested with CONFIG_DEBUG_BLOCK_EXT_DEVT enabled and about 1000 unlabeled devices. Did not see an issue. While I see the SCSI devices with MAJOR 259 and quite a random MINOR all the DASD devices keep their MAJOR 94 and ascending MINOR. > > And compared to all the complications I think the biodasdinfo method > is the least of all those evils. Are you talking about your first patch suggestion?Then I disagree. I still do not like to force the driver to be built in if there is an alternative. If the major number is an issue also for DASD device than I prefer to implement the devmap lookup to ensure that the device belongs to the DASD driver. But I am open to alternatives as well. Side note: I am planning to deprecate the implicit DASD partition for unlabeled devices so we might get rid of this stuff at all at some point in time. We just have to discuss how this might be done properly. > Jens, any opinion?