From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: 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