Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031724AbWLGGps (ORCPT ); Thu, 7 Dec 2006 01:45:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1031727AbWLGGps (ORCPT ); Thu, 7 Dec 2006 01:45:48 -0500 Received: from e6.ny.us.ibm.com ([32.97.182.146]:53965 "EHLO e6.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031724AbWLGGpr (ORCPT ); Thu, 7 Dec 2006 01:45:47 -0500 Date: Thu, 7 Dec 2006 12:15:12 +0530 From: Srivatsa Vaddagiri To: Bjorn Helgaas Cc: Ingo Molnar , linux-kernel@vger.kernel.org, Myron Stowe , Jens Axboe , Dipankar , Andrew Morton , Gautham shenoy Subject: Re: workqueue deadlock Message-ID: <20061207064512.GA27583@in.ibm.com> Reply-To: vatsa@in.ibm.com References: <200612061726.14587.bjorn.helgaas@hp.com> <20061207061701.GA25744@in.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061207061701.GA25744@in.ibm.com> User-Agent: Mutt/1.5.11 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1003 Lines: 25 On Thu, Dec 07, 2006 at 11:47:01AM +0530, Srivatsa Vaddagiri wrote: > - Make it rw-sem I think rw-sems also were shown to hit deadlocks (recursive read-lock attempt deadlocks when a writer comes between the two read attempts by the same thread). So below suggestion only seems to makes sense .. > - Make it per-cpu mutex, which could be either: > > http://lkml.org/lkml/2006/11/30/110 - Ingo's suggestion > http://lkml.org/lkml/2006/10/26/65 - Gautham's work based on RCU > > In Ingo's suggestion, I really dont know if the task_struct > modifications is a good thing (to support recursive requirements). > Gautham's patches avoid modifications to task_struct, is fast but can > starve writers (who want to bring down/up a CPU). -- Regards, vatsa - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/