Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1646535imu; Thu, 10 Jan 2019 00:05:41 -0800 (PST) X-Google-Smtp-Source: ALg8bN5mZyxU0Tx/tw5JfmDQn5prVsTLS4AioSNS1vqHG4SgAYSTRggP4Dnf4qEJARQdX7nBWv+c X-Received: by 2002:a17:902:8a95:: with SMTP id p21mr9578044plo.183.1547107541821; Thu, 10 Jan 2019 00:05:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547107541; cv=none; d=google.com; s=arc-20160816; b=rDbCZwBixLbtMAT9ZYDqCPx9RjOYvoAxUePLuUANisgfjH2akwRmQr3fG40iWnY8qV SJsOrlQmAt+60ab16cBXCjY+uQyzMx+qBMbPsc3azufOQT3HzuG503dngOGPYiG41GzU 2zZc+1iC7QFqTL33CXbywH5BazBldluFpKGiIJhSGoPh03CALi9WNMvLEIucZtpKPP+l BsvScbGCuFXxsYRx/zXeFT3ezTWAtEt4znjVvTno9jQ22v/Y7mWnD47EMjn6ZI13ZVqo ExJZrqpfGXnqLVYVaiEi4KrOuX7QVuDPMwHJpH8i0s/mPtPDyC7KcBKoAiJjtRh/sL8h Z4Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:mime-version:user-agent:date:message-id :organization:subject:from:cc:to:dkim-signature; bh=kfdmoAhyWtoNrw/4cgQsOBYo7hQeJrbw9Et7QEngGYg=; b=LoxWYA/Jq+3iU5SWDcmCJFAX3fqDUtgt7aJQfX3waCACSyC942hsH6oeYHaYy0z+eX Wu+3iJNHDqTz7849Ry+uY6iUdZNGJKtLaK83573aVtASQbPJFEtYZKWohDYYsP17YZIu jtWw6Lxagvb1TSKN3suC6BhGsvb4agnu34WGq6my7czrL/6Lyoherl7+wbKXdrpAmWU5 9uEy9ZaRrUYh7gPsrTn8ngIwAwqQqb81vnyiA6JHb1grp5rdZEi7XPf8DjIu5KYHlvzE 8lTpMj6qJ3BntNJ7Ot6y5aRyJBFE/tJQeDiT/WCJkrwrMxK0iP1boNbIfNa95MinPwgk LzlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=WWo1z+2r; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v189si12004425pgb.398.2019.01.10.00.05.25; Thu, 10 Jan 2019 00:05:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=WWo1z+2r; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727709AbfAJIDL (ORCPT + 99 others); Thu, 10 Jan 2019 03:03:11 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:57062 "EHLO aserp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727401AbfAJIDK (ORCPT ); Thu, 10 Jan 2019 03:03:10 -0500 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id x0A7wiav117410; Thu, 10 Jan 2019 08:02:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=to : cc : from : subject : message-id : date : mime-version : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=kfdmoAhyWtoNrw/4cgQsOBYo7hQeJrbw9Et7QEngGYg=; b=WWo1z+2rYBmFBNviWCHk6CbHqPryirrKhrFRogKMshtiT07nbg04sCCdcFTPd3zMCFeG NxeNrzCTRhIz/DP+UxvdKDhDlUJpbfOlFJpXJOCJZuIp6XCT46B6w+UYgdeEJ2o+vxCe 4gQUWUeQ1Ra0BtBo3xL84LONtSl5sB6hUi6xrphrRj/GoFcrX7IM5OGfKLlCm5ThJA24 oQe/i9WFhUQw/w+AqABzgC0xbQn0kSIYL6Ay7A0BXcS2+h83hl6tXpODq/pl1Ajq+5UR rUshb7KKfO0vI/F1dB8ts3ErJ4BZalPjSkL3PP2lSCX1yEYhAjzYK52tydrcXX/AGyML wg== Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2130.oracle.com with ESMTP id 2ptj3e5v6x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 10 Jan 2019 08:02:58 +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 x0A82vg7006708 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 10 Jan 2019 08:02:57 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 x0A82vnf004162; Thu, 10 Jan 2019 08:02:57 GMT Received: from [10.191.19.190] (/10.191.19.190) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 10 Jan 2019 00:02:57 -0800 To: LKML Cc: Peter Zijlstra , longman@redhat.com, SRINIVAS From: Zhenzhong Duan Subject: Question about qspinlock nest Organization: Oracle Corporation Message-ID: Date: Thu, 10 Jan 2019 16:02:53 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9131 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=743 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1901100066 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Maintainer, There is a question confused me for days. Appreciate an answer. In below code, the comment says we never have more than 4 nested contexts. What happen if debug and mce exceptions nest with the four, or we ensure it never happen? /*  * Per-CPU queue node structures; we can never have more than 4 nested  * contexts: task, softirq, hardirq, nmi.  *  * Exactly fits one 64-byte cacheline on a 64-bit architecture.  *  * PV doubles the storage and uses the second cacheline for PV state.  */ static DEFINE_PER_CPU_ALIGNED(struct qnode, qnodes[MAX_NODES]); -- Thanks Zhenzhong