From patchwork Thu Sep 27 10:43:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "jianchao.wang" X-Patchwork-Id: 10617783 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6A22B14BD for ; Thu, 27 Sep 2018 10:41:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5AF972B19D for ; Thu, 27 Sep 2018 10:41:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 59A142B1C0; Thu, 27 Sep 2018 10:41:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0AC342B19D for ; Thu, 27 Sep 2018 10:41:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727260AbeI0Q6z (ORCPT ); Thu, 27 Sep 2018 12:58:55 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:46980 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726948AbeI0Q6z (ORCPT ); Thu, 27 Sep 2018 12:58:55 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w8RAd8AQ144705; Thu, 27 Sep 2018 10:41:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id; s=corp-2018-07-02; bh=Wd2EG06MVyKQypwiXW3ayoYq6PoUpGgAhp51keAtcCU=; b=GSBonbPmW1ZR6SbWEKomrrh0sftWIx09fRzXhdWjc2wbM0cIMG9/F6lQXWOLmzv7iov2 X1+vWLqdiHka5QOHL33Y6UJ6Y+O2hERcL6DIFNDNx1d/cBimqTcMNJPrT9KRi6bYr0o3 fV/jnPmLh14ALdJJb85sqBpk5AJHcdr/V5nmDbtnHEmW8W82PC5eJ4BQttP355mD1wXH 9Aj+EpfqXYL18OV6+1WFWSMtnj7fAM//4AKEZl82ngsnfEPE+GjqADeeOulYLqBBY+tJ jA8WtyFnr/n6WuvDvzFYTpXv4oOlMILEBMwySF/UGLhfpjYegjO3/2bKzOkohfOMLQ0/ BQ== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp2120.oracle.com with ESMTP id 2mnvtuyywx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 27 Sep 2018 10:41:12 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w8RAfB8k008292 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 27 Sep 2018 10:41:11 GMT Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w8RAfBHT003465; Thu, 27 Sep 2018 10:41:11 GMT Received: from will-ThinkCentre-M910s.cn.oracle.com (/10.182.70.254) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 27 Sep 2018 03:41:10 -0700 From: Jianchao Wang To: axboe@kernel.dk Cc: keith.busch@linux.intel.com, ming.lei@redhat.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] blk-mq: two fixes about updating hw queues Date: Thu, 27 Sep 2018 18:43:02 +0800 Message-Id: <1538044984-2147-1-git-send-email-jianchao.w.wang@oracle.com> X-Mailer: git-send-email 2.7.4 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9028 signatures=668707 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=505 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809270109 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Jens This patch set fixes two defects during update hw queues. 1st patch refactor the blk-mq debugfs and sysfs register during blk_mq_update_nr_hw_queues. 2nd patch should be able to fix the panic reported in follwing link https://marc.info/?l=linux-block&m=153799465603723&w=2 Jianchao Wang (2) blk-mq: adjust debugfs and sysfs register when updating nr_hw_queues blk-mq: fallback to previous nr_hw_queues when updating fails block/blk-mq.c | 79 ++++++++++++++++++++++++++++++++++------------------------ 1 file changed, 47 insertions(+), 32 deletions(-) Thanks Jianchao