Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp48453ybj; Fri, 8 May 2020 06:16:58 -0700 (PDT) X-Google-Smtp-Source: APiQypJCE0Uz67AT+neVXxsGTXBRvBnlbtdMlxguM9Z8Y8eNcotqcd1E+/VjHnBiNUmZv49Q+hzI X-Received: by 2002:a17:906:2410:: with SMTP id z16mr1876906eja.1.1588943818434; Fri, 08 May 2020 06:16:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588943818; cv=none; d=google.com; s=arc-20160816; b=h87TJ4xN91G6t32o/iTfPule+9xYIZfquC3EuXiISisogR6xtmlbVpgwxHYVjiyMiR JLXnoheGT9riQyIK6KrK8osZn7OP5lAECbol02Onao9cstA8jLC+HTGQUj+W8YhLJkIp LozAVzM+fL7CbFHXqYbVnz9bhn2Y8EOzbrokHyelGZD6j3DiBQLlc2C/dUfB9c/weA6h qyNR+bEhXkBMoaH4NsLUoT5Pgu2frWz0cMojH9N8y6GKQcffyyi+bOQOB8QjwtETQUdZ cO1ryvp7BYGLD4wZzclYOfvvxGDpxeUsSm4QVeaWFzR5vcah+LiLNnG2fcBIv7n+yD+1 hhGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=atBRzavTvYkh7BHJjxFn0edkNP2ZMI4PlXvym7QRMfc=; b=MALgbstwMJ5HQsB/hZbr8pm5oUOYoXOWhn5PmO0b+EijEMJibYy66fQ+LypfkgaeSV gQUs6lfaxM8ZiClXou0wwJZfcWT/piDOOByL2tFLHMbplWVsoBMZXN8MNWQtDQ982kSp t7QZGUFo8cXFivil1DVmzkna1w/2pPmr/GF3oYPpLmHR2hJso8V9BoWiDlq42VUMxuTJ QOudpE1Lpe0hscXvYnRFhjdkFfj4l9CX0G2rpVQmxNk/pkuuUa21OlUv2zE/LJmy/3Fd f/2KNavrOmKuLpX4vK/W/dUP+QfU961HWxNgqzPPwWWyVTuvyliiWHka+iVIOjiNa6fC DqMQ== 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 t10si946445edi.492.2020.05.08.06.16.35; Fri, 08 May 2020 06:16:58 -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 S1730320AbgEHNPO (ORCPT + 99 others); Fri, 8 May 2020 09:15:14 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:65142 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728557AbgEHNPJ (ORCPT ); Fri, 8 May 2020 09:15:09 -0400 Received: from pps.filterd (m0187473.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 048D3oZl007616; Fri, 8 May 2020 09:15:01 -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 30vts7kde4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 08 May 2020 09:15:01 -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 048DCh9P006189; Fri, 8 May 2020 13:14:59 GMT Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by ppma05fra.de.ibm.com with ESMTP id 30s0g5newr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 08 May 2020 13:14:59 +0000 Received: from b06wcsmtp001.portsmouth.uk.ibm.com (b06wcsmtp001.portsmouth.uk.ibm.com [9.149.105.160]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 048DEuan56754200 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 8 May 2020 13:14:56 GMT Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 52E3EA405F; Fri, 8 May 2020 13:14:56 +0000 (GMT) Received: from b06wcsmtp001.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 41563A4054; Fri, 8 May 2020 13:14:56 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by b06wcsmtp001.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Fri, 8 May 2020 13:14:56 +0000 (GMT) Received: by tuxmaker.boeblingen.de.ibm.com (Postfix, from userid 20191) id D2C43E026B; Fri, 8 May 2020 15:14:55 +0200 (CEST) From: Stefan Haberland To: hch@lst.de Cc: axboe@kernel.dk, hoeppner@linux.ibm.com, linux-s390@vger.kernel.org, heiko.carstens@de.ibm.com, gor@linux.ibm.com, linux-kernel@vger.kernel.org, borntraeger@de.ibm.com Subject: [PATCH v3 0/3] s390/dasd: remove ioctl_by_bdev from DASD driver Date: Fri, 8 May 2020 15:14:52 +0200 Message-Id: <20200508131455.55407-1-sth@linux.ibm.com> X-Mailer: git-send-email 2.17.1 X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216,18.0.676 definitions=2020-05-08_12:2020-05-08,2020-05-08 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 clxscore=1015 mlxscore=0 mlxlogscore=336 lowpriorityscore=0 malwarescore=0 suspectscore=1 phishscore=0 adultscore=0 priorityscore=1501 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2005080111 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christoph, as discussed yesterday I have picked your first patch, adopted the second one and created a new third patch to remove the ioctl_by_bdev calls. I export the symbol for the dasd_biodasdinfo function and obtain the pointer with a kallsyms_lookup_name. The checking if the gendisk is owned by a DASD is done by comparing the fops pointer as you suggested. Looks like the most suitable method here. Please note that this patch is not ready for inclusion and only basic function tested. It is just for discussion. Christoph Hellwig (2): dasd: refactor dasd_ioctl_information block: add a s390-only biodasdinfo method Stefan Haberland (1): s390/dasd: remove ioctl_by_bdev calls block/partitions/ibm.c | 15 +++++++-- drivers/s390/block/dasd_int.h | 1 + drivers/s390/block/dasd_ioctl.c | 59 ++++++++++++++++++++++++--------- include/linux/blkdev.h | 1 + 4 files changed, 57 insertions(+), 19 deletions(-) -- 2.17.1