Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1033677rdb; Sat, 7 Oct 2023 08:59:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFvhZ6qlW7ODrYPInLF6Gs4UzLxqejwW4fHOcIObq1s+l/3XdP/+eTR0OiOGwGfvAB+Mf2A X-Received: by 2002:a05:6a00:2d01:b0:68e:2eed:5ab0 with SMTP id fa1-20020a056a002d0100b0068e2eed5ab0mr12651964pfb.7.1696694340609; Sat, 07 Oct 2023 08:59:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696694340; cv=none; d=google.com; s=arc-20160816; b=qTh3OZUBDQp8hC7vbJs1AWY7IecyjLqlhZ3eg4b8UEpT9ZWG8loXO7W2YInx48L+aj dA663K1iXsNcNW2qMm0lqroM4R0Z/hipfeCaUBVYPzmNOtxY0XqYMVUyzPlaTA8a2g/V zw53ELAmzljTCmEbrZMKTgJYIrBC/wFMu/LBCfmZaAEIBgC91ajTpZUDBqty4qXrAzLp ecGi7sboHdiaH3iKm+lCFJTtQ1kmKTqQ/uvi+r2XDGiNclrXAemkHdl3LGv49TwZm14H fWIahn/UerySOw9KOkMw0ZFED/yWnOQyMyaiKsAYBgYgsJUvVUx2ozl6BUWCdKfyW1BL P6tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=QqEN0Z4sFsNAs75sSbd741FXKiHxVIQSvrwRy+HtBEY=; fh=dG/iZv3SCutGKLl4G4KU56ylSjCNCnQK54OdfMkrTIw=; b=T3RFqSG1Q6REuXO3FHwn/SOvLVr0hpvYjgaYi64tLrIDvlgz31pRVLi+hgw9NLX+Zm GiD845iu1TuPKIJWy+YUn595IyTSO3TUuoqt5y6jvzZTmm4ffZSSGcSls1C2DhRiPz/t zTdeF+FrflQGOdXIPb9x7Vs86R2ojtk3slZcBr9+HVVGTs2Wl2oKw2UuEw1deUdZsIW+ 6fsQ6A0mdoGOOnNe1BRtQc9RpWTVFTtD/CTb0A1fNEjxU0x9DIDEb6lMPIX5U7Anhof7 0z1SLixqMI5DOteXvOc5StdIsg7ZDun5RGwev4hyDvyvQu3Mt3HwzR82Bn/SqXwI7AT+ rVOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XcM6WLAb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id 33-20020a631661000000b00578a02ee39fsi6152541pgw.334.2023.10.07.08.59.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Oct 2023 08:59:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=XcM6WLAb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 8F3A280A2663; Sat, 7 Oct 2023 08:58:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344108AbjJGP6w (ORCPT + 99 others); Sat, 7 Oct 2023 11:58:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344103AbjJGP6v (ORCPT ); Sat, 7 Oct 2023 11:58:51 -0400 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 940B9BA; Sat, 7 Oct 2023 08:58:49 -0700 (PDT) Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-323ef9a8b59so2993347f8f.3; Sat, 07 Oct 2023 08:58:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696694328; x=1697299128; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=QqEN0Z4sFsNAs75sSbd741FXKiHxVIQSvrwRy+HtBEY=; b=XcM6WLAbxgUhEftkUXXO5x9WKlT65CEIEhGBOec38u9nsGraXl4MjIm2rqHarl7dT5 KmY8HR4EsQcXjdWDCpGwAixXplIIFlB2hHPQGoWM7ZgGzQ/B+anHd4HLHIcrwHH/EvX3 a6ds1L48Zen9ytZs8faOjd/YYdWxBRo6Z/M9hDndj9igjhvuDwK66EtextASAc9BIa/1 KdT8Xcvuzl1CORYXS5zmcelfbSt/izD8f0ENmbpdrD0i8Lou0Je3mwKrEtQY0Bo3tcpu Edo3djkj78ijU0Wws9FeN4TRkC+l9nRrMAuQd62WTRPqI+F9cQLp7Xq3FNBN0IoP6Q+q 7IfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696694328; x=1697299128; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=QqEN0Z4sFsNAs75sSbd741FXKiHxVIQSvrwRy+HtBEY=; b=qfHyNE3RGcjVfhFiiS+sG4YHcGjKD++iVFc2NdxBKV5Dr0oPg4StdG9eWsJQGyrjau PwxS+6OP3ZuqEup00W7tWAwlZa8pfrdg/bCDyGxUJm3S/MHf1lKQEhg2xt0yEgYm4Kmr iDTnjzigh2dw0yZd2984xILr1d3FTx2waexZRIzilobxQ1qGjowZA2jYAGh7C1v/ce37 cMHKsZx7z2jhWvVAxBIKTTb0Yaylp1ppiFT6N7Rw3IYd3vTVptjQcNF6nZNyD6FpW44b vd1BukSmJBtuFlFP1SJvLSucflXpuaXZLo8uEEa3hhsP3KtapQ+byTKnHTZOCHps0oYI KWAQ== X-Gm-Message-State: AOJu0YycDQYUk47QMuhP0hqhRD+7QYCozjVqJMuTbTtnEMftRs2nLeOy a/RrhDXPejJdkTWH7swWek+Lx4XLNrq8prrROt8= X-Received: by 2002:a05:6000:109:b0:320:9e2:b3a2 with SMTP id o9-20020a056000010900b0032009e2b3a2mr10138068wrx.33.1696694327693; Sat, 07 Oct 2023 08:58:47 -0700 (PDT) MIME-Version: 1.0 References: <20231005074858.65082-1-dg573847474@gmail.com> <20231006162835.79484017@kernel.org> In-Reply-To: <20231006162835.79484017@kernel.org> From: Chengfeng Ye Date: Sat, 7 Oct 2023 23:58:36 +0800 Message-ID: Subject: Re: [PATCH v2 1/2] atm: solos-pci: Fix potential deadlock on &cli_queue_lock To: Jakub Kicinski Cc: 3chas3@gmail.com, davem@davemloft.net, horms@kernel.org, linux-atm-general@lists.sourceforge.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 07 Oct 2023 08:58:59 -0700 (PDT) Hi Jakub, > and irqsave here. I think you're right that it's just softirq (== bh) > that may deadlock, so no need to take the irqsave() version in process > context. Yes, spin_lock_bh() is enough. I just found spin_lock_irqsave() is more frequently used in this file, so I also used spin_lock_irqsave() here for uniformity consideration at that time. Should I send a new patch series to change this to spin_lock_bh()? That's better for performance consideration. Thanks, Chengfeng