From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752450AbdHPTOw (ORCPT ); Wed, 16 Aug 2017 15:14:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:41870 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752026AbdHPTOu (ORCPT ); Wed, 16 Aug 2017 15:14:50 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CD21922B4F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=goodmis.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=rostedt@goodmis.org Date: Wed, 16 Aug 2017 15:14:46 -0400 From: Steven Rostedt To: Waiman Long Cc: Jens Axboe , Jeff Layton , "J. Bruce Fields" , Ingo Molnar , linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH] blktrace: Fix potentail deadlock between delete & sysfs ops Message-ID: <20170816151446.372fc3d2@gandalf.local.home> In-Reply-To: References: <1502384553-14442-1-git-send-email-longman@redhat.com> <20170815191145.3c95680e@gandalf.local.home> <6fa9f560-e1c2-f164-779f-aeefc5aa7017@redhat.com> <20170816141749.6c11d14c@gandalf.local.home> <4841e079-c518-cdff-2fbd-661a9ef36722@redhat.com> <20170816145938.6cc7eaee@gandalf.local.home> X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 16 Aug 2017 15:07:25 -0400 Waiman Long wrote: > I am thinking about maybe letting a RT task to sleep a tiny amount of > time instead of calling schedule(). Hopefully, that will allow a > lower-priority task to make forward progress. That is actually one of the ugly hacks we have in the PREEMPT_RT patch (and one of the things we need to fix before getting it to mainline). A simple msleep(1). -- Steve