Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp829327ybj; Thu, 7 May 2020 08:32:36 -0700 (PDT) X-Google-Smtp-Source: APiQypIoYCbdPm9HDA7dqbli1HPr/UEXNSLragK3xTogDZ/hPEvA9w0pvgl+7o3gn5Y8dPqGN/V2 X-Received: by 2002:a05:6402:22f0:: with SMTP id dn16mr12891300edb.201.1588865556595; Thu, 07 May 2020 08:32:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588865556; cv=none; d=google.com; s=arc-20160816; b=Cw9UEr54gW8/rOsdFvxsZYP3heGndiF12kmWqgfnDTI3zkUefqFAqoWBNb3z1pjcwS O6Yol8Q66sHNCwtTLzpHkPOp5+rp/LmPQ0YQjDGugW1kl/FAvhexSW2jye6XiipQ67OE sRAgWr/2KYnbwnEIVipdSMIP0peg66losx5HqMSHmFeODSn3tPBnnf+z52J2tRmysve7 LuRMkhg/Ad/7KecUwraRXvIC70SyGEjRzGn6G0W6CaObPkcDkoDB2VPmZZ0fqynFQBqp yrMK9KiTCeNXQjKEiG0SK0/PcL5FCJWN/0a1Dgjnixg/jQBUO8V5wvJkEfs4A2FDievU sdWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=/GoG1P0Xh0EfdiHDQrJhMpwxd3AKlZbUTLLPjYETnzk=; b=A/OgvUq0ccunYsPjBYtLFIgWG6uqGlMyy9aOVOI+uSCZPGfupshag+1vWTSKtNagde RXM76eZJCPm9MFnEyT193DczzWm3YIE53gQoNFY1djhYcZ0LCZ6uwhs1t4RCcnZiP9XH 661aNVf4DXBUfV10nfI9wFqqTy6XKdnQjMVFxbvjCRXg36eEp4C6aMLSt0c/mahyEaAL wAkgEHyL7+6S7cpXIdFm0qGy8RC96cpdUzPNxiFJJIs80oLFQxyVXWU21yOWUjBnlEP5 +TM7kAIn4pV/f5AGP58YTXpgHCwQs31Oqf0OGIZAc+RHuBGOZXvcIedos6HhMEi4nn4w i7wQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h15si3048266edv.341.2020.05.07.08.32.11; Thu, 07 May 2020 08:32:36 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726638AbgEGP3J (ORCPT + 99 others); Thu, 7 May 2020 11:29:09 -0400 Received: from verein.lst.de ([213.95.11.211]:47391 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725914AbgEGP3J (ORCPT ); Thu, 7 May 2020 11:29:09 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id A33A868B05; Thu, 7 May 2020 17:29:06 +0200 (CEST) Date: Thu, 7 May 2020 17:29:06 +0200 From: Christoph Hellwig To: Stefan Haberland Cc: Christoph Hellwig , 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 Subject: Re: [PATCH 1/1] s390/dasd: remove ioctl_by_bdev from DASD driver Message-ID: <20200507152906.GA31257@lst.de> 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> <20200506045258.GB9846@lst.de> <10918cd1-a4a9-7872-9672-efcd28ef0751@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <10918cd1-a4a9-7872-9672-efcd28ef0751@linux.ibm.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 07, 2020 at 05:22:28PM +0200, Stefan Haberland wrote: > OK, just thought again about your suggestion and also that > you have already been talking about a symbol lookup I just > have written a prototype that took your first two patches > as base, exports the symbol of dasd_biodasdinfo and in > ibm.c I do a kallsyms_lookup_name("dasd_biodasdinfo"). > > So I would not have to define a structure twice or rely on > MAJORs. Also we would not have to define an own file > operation only for DASD devices. > > What do you think about this? If you agree I will polish > the patches, test them and send them for review. How do you figure out a given gendisk is a DASD device? I guess dasd_biodasdinfo could just check the block_device_operations pointer first thing. That's still a little ugly, but seems the least bad idea so far, so please at least post it for discussion.