Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 62CC6C43331 for ; Wed, 1 Apr 2020 14:29:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3B58D20719 for ; Wed, 1 Apr 2020 14:29:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732943AbgDAO3s (ORCPT ); Wed, 1 Apr 2020 10:29:48 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:9682 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732832AbgDAO3r (ORCPT ); Wed, 1 Apr 2020 10:29:47 -0400 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 031EReMB027888 for ; Wed, 1 Apr 2020 10:29:46 -0400 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0b-001b2d01.pphosted.com with ESMTP id 303uj4fr3r-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 01 Apr 2020 10:29:45 -0400 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 1 Apr 2020 15:29:42 +0100 Received: from b06avi18878370.portsmouth.uk.ibm.com (9.149.26.194) by e06smtp07.uk.ibm.com (192.168.101.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 1 Apr 2020 15:29:38 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 031ETdbX42664200 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 1 Apr 2020 14:29:39 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id ED4D211C06E; Wed, 1 Apr 2020 14:29:38 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4CD4B11C05C; Wed, 1 Apr 2020 14:29:38 +0000 (GMT) Received: from oc4120165700.ibm.com (unknown [9.145.121.29]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 1 Apr 2020 14:29:38 +0000 (GMT) Subject: Re: [PATCH] scsi: remove show_use_blk_mq() To: Jason Yan , martin.petersen@oracle.com, jejb@linux.vnet.ibm.com Cc: linux-scsi@vger.kernel.org, "Ewan D . Milne" , Christoph Hellwig , Hannes Reinecke , Bart Van Assche , Ming Lei , John Garry , Greg Kroah-Hartman , Benjamin Block References: <20200401134049.9352-1-yanaijie@huawei.com> From: Steffen Maier Date: Wed, 1 Apr 2020 16:29:38 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: <20200401134049.9352-1-yanaijie@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 20040114-0028-0000-0000-000003F0150C X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20040114-0029-0000-0000-000024B59B8C Message-Id: <922d45fb-0c0a-0f1e-d9ea-d6f01b194765@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.676 definitions=2020-04-01_01:2020-03-31,2020-03-31 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 impostorscore=0 adultscore=0 mlxlogscore=999 lowpriorityscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 phishscore=0 clxscore=1015 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2004010123 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org On 4/1/20 3:40 PM, Jason Yan wrote: > This code is useless now so remove it. > > Cc: Ewan D. Milne > Cc: Christoph Hellwig , > Cc: Hannes Reinecke > Cc: Bart Van Assche > Cc: Ming Lei > Cc: John Garry > Signed-off-by: Jason Yan > --- > drivers/scsi/scsi_sysfs.c | 8 -------- > 1 file changed, 8 deletions(-) > > diff --git a/drivers/scsi/scsi_sysfs.c b/drivers/scsi/scsi_sysfs.c > index 163dbcb741c1..6480e27982ab 100644 > --- a/drivers/scsi/scsi_sysfs.c > +++ b/drivers/scsi/scsi_sysfs.c > @@ -386,15 +386,7 @@ show_host_busy(struct device *dev, struct device_attribute *attr, char *buf) > } > static DEVICE_ATTR(host_busy, S_IRUGO, show_host_busy, NULL); > > -static ssize_t > -show_use_blk_mq(struct device *dev, struct device_attribute *attr, char *buf) > -{ > - return sprintf(buf, "1\n"); > -} > -static DEVICE_ATTR(use_blk_mq, S_IRUGO, show_use_blk_mq, NULL); > - > static struct attribute *scsi_sysfs_shost_attrs[] = { > - &dev_attr_use_blk_mq.attr, Looks like the removal of a sysfs attribute. Wouldn't this break user space ABI? I checked Documentation/ABI/ but could not find this attribute having been obsolete (but it does not seem testing or stable either). [linux/Documentation/ABI](0)$ git grep use_blk_mq . testing/sysfs-block-dm:41:What: /sys/block/dm-/dm/use_blk_mq > &dev_attr_unique_id.attr, > &dev_attr_host_busy.attr, > &dev_attr_cmd_per_lun.attr, > -- Mit freundlichen Gruessen / Kind regards Steffen Maier Linux on IBM Z Development https://www.ibm.com/privacy/us/en/ IBM Deutschland Research & Development GmbH Vorsitzender des Aufsichtsrats: Matthias Hartmann Geschaeftsfuehrung: Dirk Wittkopp Sitz der Gesellschaft: Boeblingen Registergericht: Amtsgericht Stuttgart, HRB 243294