Received: by 10.213.65.68 with SMTP id h4csp430858imn; Wed, 4 Apr 2018 00:38:44 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/bQrdAGqBwWb5TOCO/EVTOqL60UgopO7qi6ZGhfXGznam1iThoh4OW1E95JHnNGSpTweVU X-Received: by 10.99.125.74 with SMTP id m10mr375714pgn.80.1522827523983; Wed, 04 Apr 2018 00:38:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522827523; cv=none; d=google.com; s=arc-20160816; b=XseR+gocAx+DzSkijtygQoN3zYn93L4TNh1Mk94a4/rxQngNU7xnl6R6FyyqiXH1Tb zP09ZBs4fbEpLXOWqqb4FXaKPCv5a8JAsdIVu2FiprSQ7sppSEjOwZBHpz+ToSh5aEWW 6OBOE3S+KgV7wsjHKpuoaFA5aPSB60F9g6vqfUMFywL4u5MgSOi56X/pTad/xomj8aaf FAvrxrpP5QWe40DVP7hRfts5G1UKECRC4DGv4L7Go4pynm93mliisdan/tBFCIddJrZc A1ZQXnyplO3cRuFlVuoO+5KThp4PPtBVHLYxpyhTK64ZwpK03PzL2RXrsZ8KBZtglV/L klCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=N4JUhvU0ISAKXWoP02MBDM79P2i6/WZO+ihQgg9XFcQ=; b=VyLSvttY0uGDU/P+IW5hw3IZxJuUI4QE0Q9KiC00QeE/YzaAWVfUGyhm0++8duQc38 S63raM9XeTjKdq/M6lrEl3cSEpRxdDtBHEJDo/aWN9RHbYgrtu0raE1QPcekxkHA7C1M JgJYanokhP7IjKWq/aHQpvlq8PeA5sHPhwYmPBQWjsf04RQaCRkeLQuduXIQFuLOlhha bdKfBoH1BAHSLk/BzxBWh48QIsVaSWeG+1MaXb/W+UC/HkIg2pUBrLf1fdaUWOz5Ii/j dFt9XjJ7RHH77Y6Pipo2J/yb+kddLepuBhUkD88oYfGHdAivls/9bk51Rz40ou3kQQVz j9Ww== 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 x1-v6si2477555pln.414.2018.04.04.00.38.30; Wed, 04 Apr 2018 00:38:43 -0700 (PDT) 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 S1751279AbeDDHhX (ORCPT + 99 others); Wed, 4 Apr 2018 03:37:23 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:60796 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750779AbeDDHhW (ORCPT ); Wed, 4 Apr 2018 03:37:22 -0400 Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1f3cys-00016Y-PA; Wed, 04 Apr 2018 09:37:18 +0200 Date: Wed, 4 Apr 2018 09:37:15 +0200 From: Sebastian Andrzej Siewior To: Daniel Wagner Cc: linux-rt-users@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Gleixner , Steven Rostedt , stable-rt@vger.kernel.org Subject: Re: [PATCH RT 1/3] alarmtimer: Prevent live lock in alarm_cancel() Message-ID: <20180404073715.gwiabamwvvyi2bum@linutronix.de> References: <20180328100746.18668-1-bigeasy@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180323 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-04-03 20:32:36 [+0200], Daniel Wagner wrote: > Hi Sebastian, > > On 03/28/2018 12:07 PM, Sebastian Andrzej Siewior wrote: > > If alarm_try_to_cancel() requires a retry, then depending on the > > priority setting the retry loop might prevent timer callback completion > > on RT. Prevent that by waiting for completion on RT, no change for a > > non RT kernel. > > > > Cc: stable-rt@vger.kernel.org > > How relevant is this serie for trees before eae1c4ae275f ("posix-timers: > Make use of cancel/arm callbacks")? Patch #2 seems to depend on that change > which was added in v4.12. so #1 looks relevant since that alarmtimer was introduced. #2 since the change you mentioned because after that patch alarmtimer would be handled wrongly - before you should do the schedule_timout() which should be fine. And #3 since 3.0+ (since the RCU-readsection was added) but it is not easy to trigger (you would have to delete the timer while a callback is waiting for it). > Thanks, > Daniel Sebastian