Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3221776ybc; Mon, 25 Nov 2019 10:53:58 -0800 (PST) X-Google-Smtp-Source: APXvYqzJNpt2REEApNhJ0kRH7SRTkalRe8XEOMET5c9R61+ncw1uaa8kFHf+RnRgrLkEwPbTMlWm X-Received: by 2002:a17:906:2344:: with SMTP id m4mr23867634eja.110.1574708038670; Mon, 25 Nov 2019 10:53:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574708038; cv=none; d=google.com; s=arc-20160816; b=GVcP8GABzYvaanhzfZtEurPvpblk8Il+YZ/3GNR8lnLPr8xG3uK7NufCGGWpBOT0OX i4y2g3kbkoWZSE5dIH6CWH1e28zqTd1LA7quyzjuKtjseXDIfQr4OVhgf2Y/hFDXNEeB /lVCoF4T4qFX8/jBoOTgHSw5F3myrDet2U+uBrNOCDsugckT/dYQRpEX/bqtbVGlDsLw NEB8mEyKn1R6tehWJTU0AXqEo9Tx6F/k/BGiRcACtqxk87saRDxbUeRR0gxOMaf7wu0K dcVXKa/rkPSIVDrv5C0QTYhhjTsXNNSF2Jfoh7TiDtuErHiqsfR+Z4JHcuaL+sJWR33O pZ+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=MrSRCRfK0sH5bKstBidByOuHgv4ffSMAf38eqh3Fo1Q=; b=saOz14fU89R8EI3djXlH78WZUjz1hqy1oRkaW5HN5xwgEA8iUGzkgS4ZM2Gj5adHzx iePT8JTPZ6qT5TepqhWYM7hPbTvQfztCLlKIPukDEvEGnIXYPk9anet9/5asSIochlGY ydYz/nZNqWEHTLIabwTXgESPXG/J0AVkTSezf122QfIvYX095aaepmo4tQ/rZDuAh9vV vOLoCtfR2bLdlC6auJe01V9dEbU0Q92VUvjFJrg1/soXHE0kgzd6efEL+1c6XrvC0wnZ hyxOf9ksqS0V/YYJC9o/dI4Jn15PRLq/rwu3r7RYtcCBt9/G2+hsnm6AGzpY1CcRQx2J 1m/A== ARC-Authentication-Results: i=1; mx.google.com; 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 g22si4212656ejo.315.2019.11.25.10.53.35; Mon, 25 Nov 2019 10:53:58 -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; 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 S1729044AbfKYRZV convert rfc822-to-8bit (ORCPT + 99 others); Mon, 25 Nov 2019 12:25:21 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:39836 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727508AbfKYRZV (ORCPT ); Mon, 25 Nov 2019 12:25:21 -0500 Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1iZI6q-0003I3-RK; Mon, 25 Nov 2019 18:25:12 +0100 Date: Mon, 25 Nov 2019 18:25:12 +0100 From: Sebastian Andrzej Siewior To: Mikulas Patocka Cc: Mike Snitzer , Nikos Tsironis , Scott Wood , Ilias Tsitsimpis , dm-devel@redhat.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Daniel Wagner , linux-rt-users@vger.kernel.org, tglx@linutronix.de Subject: Re: [PATCH RT 1/2 v2] dm-snapshot: fix crash with the realtime kernel Message-ID: <20191125172512.q65pmda66un3cm2e@linutronix.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-11-12 11:09:51 [-0500], Mikulas Patocka wrote: > =================================================================== > --- linux-2.6.orig/drivers/md/dm-snap.c 2019-11-12 16:44:36.000000000 +0100 > +++ linux-2.6/drivers/md/dm-snap.c 2019-11-12 17:01:46.000000000 +0100 … > static void dm_exception_table_lock(struct dm_exception_table_lock *lock) > { > +#ifndef CONFIG_PREEMPT_RT_BASE > hlist_bl_lock(lock->complete_slot); > hlist_bl_lock(lock->pending_slot); > +#else > + spin_lock(lock->lock); if you also set the lowest bit for complete_slot + pending_slot then patch 2 of this mini series wouldn't be required. That means we could keep the debug code on -RT. Or am I missing something? > +#endif > } Sebastian