Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1827143ybz; Thu, 30 Apr 2020 06:15:50 -0700 (PDT) X-Google-Smtp-Source: APiQypID918C3j6O6iP9flwp2tqw515e5EXk5Vt3Mnq4HASbyrVaBtImPRd5EVWR6HzPNMyWZBf9 X-Received: by 2002:aa7:db41:: with SMTP id n1mr2657891edt.314.1588252550405; Thu, 30 Apr 2020 06:15:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588252550; cv=none; d=google.com; s=arc-20160816; b=si2eThlBu/ipMUcQE7MLWYXv9I7k2Ns35VQdhAYLAGcy9jz/TUaCDNRdv6yqScAESL shlQz/+EQCSiQAeUcL7hkSubnzOzOi6GV4l2HElYk/ursnzW2GHaaEDkUq3jMFHj53Z9 UM8Ki2uzmTD2aiaPMY3PmaYJmREu+WWVPoaD8Nglppr51eKbadqgYwGc1ndKm7wQ9Xcn ep4QtKB3q+DlnEqqUNp8noqROlFk7DHZhgKLT54XPKqgCFpXXYh8ELuNGU0oyr/RQH87 GFFZEF8UeIZdh/6NNROBw4UeZcQ7rYOgJyyoXlzAAwbdbUqrIfhRJ3fhfNIH3CqH7xT+ Sqkg== 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=/44rfb7CS/eJaDqeVMFJoCTSx8fDzJ95pqmdrRJp18g=; b=mfMUMCOQRfB7ljGz35aBhpmwBGpsGV5C8FqwP4ArVPlG47TNzrOtXiHKRkvo85FcjT t4k8UceNZCxJGK7dg/yGDQ3oZnKmVk8Rv0mTEolypazeqGbvWa1lehMG6t+08JVoQkzV Hmhh4iEzmLZVxvW9bd/2LXKh/otV0wUOmFyD2BTCeRn552zZ6WO92tc/w2PpWu6up1AJ eM/Py2cOYQLLk6MisWQDGvnBCzyFNDrOZBl4I/XOMQ3saQdb68b/SMO2IcJq34VqDbm+ PI45YVVCKo9A8QMN664NKNakDWFB8j+OYsR09ctyFLVO8fuxaItcxKfqlxitugXr26rU IdTQ== 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 h14si5983350ejd.424.2020.04.30.06.15.27; Thu, 30 Apr 2020 06:15:50 -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 S1726760AbgD3NN5 (ORCPT + 99 others); Thu, 30 Apr 2020 09:13:57 -0400 Received: from verein.lst.de ([213.95.11.211]:40633 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726520AbgD3NN4 (ORCPT ); Thu, 30 Apr 2020 09:13:56 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id A164968D07; Thu, 30 Apr 2020 15:13:52 +0200 (CEST) Date: Thu, 30 Apr 2020 15:13:52 +0200 From: Christoph Hellwig To: Stefan Haberland Cc: axboe@kernel.dk, hch@lst.de, 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 Subject: Re: [PATCH 1/1] s390/dasd: remove ioctl_by_bdev from DASD driver Message-ID: <20200430131351.GA24813@lst.de> References: <20200430111754.98508-1-sth@linux.ibm.com> <20200430111754.98508-2-sth@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200430111754.98508-2-sth@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, Apr 30, 2020 at 01:17:54PM +0200, Stefan Haberland wrote: > Remove the calls to ioctl_by_bdev from the DASD partition detection code > to enable the removal of the specific code. > > To do so reuse the gendisk private_data pointer and not only provide a > pointer to the devmap but provide a new structure containing a pointer > to the devmap as well as all required information for the partition > detection. This makes it independent from the dasd_information2_t > structure. I think sharing the data structure in private data is pretty dangerous. In the meantime I thought of another idea - the partition code could do a symbol_get of a symbol exported by the dasd driver and use that to query the information.