Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5194799ybc; Tue, 26 Nov 2019 23:37:41 -0800 (PST) X-Google-Smtp-Source: APXvYqwCQdmWgWJ2qlv879DgwNFHXFfiXbQywdeYog6FlSymp6tiYKG6ML03ObIXEhOdXny4V8Dp X-Received: by 2002:aa7:d5ce:: with SMTP id d14mr30265436eds.64.1574840261120; Tue, 26 Nov 2019 23:37:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574840261; cv=none; d=google.com; s=arc-20160816; b=sx3QNrTES7osNYXgiJ/xphCd9qmd5EDwZ9gpLZMjT35AVKTSmcLcDov3EdMC0Ot6zg /ngiLOTSEQV+R60fdJakWieexMB/CnNs+Q0m/1EEJGIbpvYEtuBR75o4ZWIXHzBxdFu+ ImHwt53bXfwfOwg+LEKAFYT/lZtIIjPBEXO8srKlOcBoVaKE2TnYPG5cbwbD2Y160sD6 jS1vUaaHwCHkTAk42spfWvo8Eber40r0Jq+D9uQ8KdnMHYp1S52qKnuWhQ4SBQLzl/R9 l6e+l8m6yiaxdfS8Q4gZAPNnhwP6Ocqmov+1EEBNObIGloVXpmThQ0cCiStmJgNEKbjH tBEw== 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:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=21uHLITcKotKZHWu+5wn+8F7nkw3137394TzTbzd/zY=; b=UWE3NbRZexSw0s4HqsHDRrY6D9IJfoKxd8aMy3KqCd6M/C4jvhzttC3ARvE50sb9I/ o7J2CRLMWnYagy6TAKWZ0T14+nD3A25ktbl/bufZjA4JB171A1FiRlUBOsJFsP1rfYFH h6g+d7dbKzQWkKRT610trxOEE/XA2Zy1Bw9NC5SwZPOI1alG/zeQoGh7FCGJ/y/+LMp8 YS+G/yHp10OE3kSgzM4vOfmc87iHHxZ7NQ77h/isXEvsnF23ccWIMpGZ4RUlJmFANSo7 JW3ONqBYf+U/LE+D8LHgc535fL3RCdm/7mcgVbH4AqV+GdiiMvLaJzjAHnQf+JFkWGVe /2WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jv-coder.de header.s=dkim header.b=CatkMYWC; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s13si1937095ejd.39.2019.11.26.23.37.17; Tue, 26 Nov 2019 23:37: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=@jv-coder.de header.s=dkim header.b=CatkMYWC; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726515AbfK0HfE (ORCPT + 99 others); Wed, 27 Nov 2019 02:35:04 -0500 Received: from mail.jv-coder.de ([5.9.79.73]:40818 "EHLO mail.jv-coder.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726092AbfK0HfD (ORCPT ); Wed, 27 Nov 2019 02:35:03 -0500 Received: from [10.61.40.7] (unknown [37.156.92.209]) by mail.jv-coder.de (Postfix) with ESMTPSA id AB6619F73F; Wed, 27 Nov 2019 07:35:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jv-coder.de; s=dkim; t=1574840101; bh=21uHLITcKotKZHWu+5wn+8F7nkw3137394TzTbzd/zY=; h=Subject:To:From:Message-ID:Date:MIME-Version; b=CatkMYWChImV2Ha5IoUJETDkacT7BbaLjlKVqR7iOd5gZ8aSJoz46GMdeNgDY1yp/ Y9ryjEIifOBcripPocr1NLOu+nPqgoVYsWNMMgcAQ/ZDFYH9qeq5f3epPu7J9Eg/ar kHLy/a+9Q3KHjQdX9J+mIiwBqbrurKh6dUj6CzqM= Subject: Re: [PATCH RT v3] net/xfrm/input: Protect queue with lock To: Tom Rix , linux-kernel@vger.kernel.org, bigeasy@linutronix.de Cc: Joerg Vehlow References: <20191126071335.34661-1-lkml@jv-coder.de> <46d5e7ea-011b-a384-ac7a-9ba63bbe9ea5@redhat.com> From: Joerg Vehlow Message-ID: <30b9da41-437a-3b00-8306-82c7c44d1a91@jv-coder.de> Date: Wed, 27 Nov 2019 08:35:01 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <46d5e7ea-011b-a384-ac7a-9ba63bbe9ea5@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Spam-Status: No, score=1.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,HELO_MISC_IP,RCVD_IN_DNSWL_BLOCKED, RDNS_NONE autolearn=no autolearn_force=no version=3.4.2 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.jv-coder.de Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tom, I didn't remove it, I just posted my patch again. I think it is up to the maintainers to decide if it is required or not. Most people using the rt patches will probably have PREEMPT_RT_FULL enabled anyway. It will never be integrated into mainline kernel, because the bug is already fixed in 5.0.19. Jörg Am 26.11.2019 um 16:31 schrieb Tom Rix: > Why remove the #ifdef CONFIG_PREEMPT.. ? > > >> + spin_lock_irqsave(&trans->queue.lock, flags); >> skb_queue_splice_init(&trans->queue, &queue); >> + spin_unlock_irqrestore(&trans->queue.lock, flags); >> > Fine otherwise. > > Tom > >