Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp148302pxa; Wed, 26 Aug 2020 07:08:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlyq7uSL/wAw5VCNqnVY8ULApcFrhbkdLuAIVzw31EXxYEAoukJ3IJmRb3pW/kIO5ddBQQ X-Received: by 2002:a50:cc92:: with SMTP id q18mr15188674edi.159.1598450892966; Wed, 26 Aug 2020 07:08:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598450892; cv=none; d=google.com; s=arc-20160816; b=XsmwarHmiD6enybrwCQHSQUjMyVOwPsgShiB2GIQlN4XQ0rTSCyIdo1+ARiDQCl8iR /5I7js5BA/FXuddoCBiwZps7ehstYPSfKxZMxxds3g+Wt71o2jCWGB4exye6aRexXQ4S ML9cotFmDi7teyY8XCi8RmieNTbjzQsQQ+PQcQQqZi4LE+AIYYlQ+gTeUvg2RHrR6jfc H+Gp6Mp6pO7PCN74eDJbEvcC8oFfSsy1Zlj/SS7SIEAZs1mOILOOQmHJSen9qOebdlhp Vhj4mWc0bU9wxr6YGnVVeAhmfPeMYdrBBGP2HvZ/x7rJIhQthOHm4KaI+nmMLjGRhMJT 15rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=ioAxhFzpgilIVQ5B/okT+TPEavcUfC9KtYUnzhhh+Ks=; b=ikludrH92IFJgkUy+aaIg2kHqdw8YaWNKPd1MtsP5nkuo7eq8dqUj1hZ+nsR7tNYic QfkimC1j2RZ8vmCs2txHR9nJ6XuAXzx9Z2bQ07mMBRO9lUWbum1HWCVOmZMp8upjqyYv pLeDifQcVvEzEXEIWwW4FvTeKPB1wlk+zlmYRmUJIHAyF35wsdV6TcsF2CWBspD5xP8F 5M20s+4aPTPBRaQRwnJ+f/hKW7Y5X0W8GBBKUdKMSHfpgCh73fpIyZeQQYzvIPaD2Z/d MYEPvxufjd0PQmv/1U9RaSk9axjZ7UCJnJo3xnHtistGSRQdA9JXNIQfkebic3by0sFU YcTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=JtLWwenJ; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f12si1698644edx.142.2020.08.26.07.07.48; Wed, 26 Aug 2020 07:08:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=JtLWwenJ; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727105AbgHZIjH (ORCPT + 99 others); Wed, 26 Aug 2020 04:39:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727030AbgHZIjG (ORCPT ); Wed, 26 Aug 2020 04:39:06 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF964C061574 for ; Wed, 26 Aug 2020 01:39:06 -0700 (PDT) From: John Ogness DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1598431144; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ioAxhFzpgilIVQ5B/okT+TPEavcUfC9KtYUnzhhh+Ks=; b=JtLWwenJ18uKrMm4N/jo2ul6kSyZwObGCDwv6DwIwVEg7usFORbY1SjARm/j14RLqB4b+q S8GvBbN798/cmEebuV2eZ2526CKgVDob4AOKc1zmc90C212141gw8/sg1Dwh72Z4ZtTUaj 1j0qg/+J68dno8tdo2E2FF3zAUj+DUEsp2gS/bAZdMKu/01oXYnB1oQcs5i5nxWKzUTDGl P2SVW6g0fr9f3rFRyFfL7Uh+3iwdARSDGBb2dWzlq/BBZ/W/QZsBeJ1J6YEIbc/JRCeaXh UeNOifnXQx143BOjaDCPHiJFU6WcSd1Hxs1CeUsXras0X2+q2MO4REN4rsoSjg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1598431144; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ioAxhFzpgilIVQ5B/okT+TPEavcUfC9KtYUnzhhh+Ks=; b=OFqmKblXPVRfXFuD9xS0kEtUZOoRkr07eTSRqcDIwu7oQ5a2O7LkRSmNJgMrOf180ux/bY jMw+8wWqEZANCzCg== To: Petr Mladek Cc: Sergey Senozhatsky , Sergey Senozhatsky , Steven Rostedt , Linus Torvalds , Greg Kroah-Hartman , Thomas Gleixner , Peter Zijlstra , Andrea Parri , Paul McKenney , kexec@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 5/7][next] printk: ringbuffer: add finalization/extension support In-Reply-To: <20200824103538.31446-6-john.ogness@linutronix.de> References: <20200824103538.31446-1-john.ogness@linutronix.de> <20200824103538.31446-6-john.ogness@linutronix.de> Date: Wed, 26 Aug 2020 10:45:03 +0206 Message-ID: <87lfi1ls2g.fsf@jogness.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-08-24, John Ogness wrote: > @@ -1157,6 +1431,14 @@ bool prb_reserve(struct prb_reserved_entry *e, struct printk_ringbuffer *rb, > goto fail; > } > > + /* > + * New data is about to be reserved. Once that happens, previous > + * descriptors are no longer able to be extended. Finalize the > + * previous descriptor now so that it can be made available to > + * readers (when committed). > + */ > + desc_finalize(desc_ring, DESC_ID(id - 1)); > + > d = to_desc(desc_ring, id); > > /* Apparently this is not enough to guarantee that past descriptors are finalized. I am able to reproduce a scenario where the finalization of a certain descriptor never happens. That leaves the descriptor permanently in the reserved queried state, which prevents any new records from being created. I am investigating. John Ogness