From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753519Ab1AGVN7 (ORCPT ); Fri, 7 Jan 2011 16:13:59 -0500 Received: from mail-bw0-f46.google.com ([209.85.214.46]:34854 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753298Ab1AGVNz convert rfc822-to-8bit (ORCPT ); Fri, 7 Jan 2011 16:13:55 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=NJNJE7vqiEySbe2yAa0E91eUz2rTDzBVLJy/XV6FoqAoMWUuR3yszzkDHMDxgGqvNS 6FlwczDSjnQ2D4GgVz17666sO+UtFh0cEADOe4J5hqTW/WjtaqfFMcGUdTAfar4GaodL 2k3SC/P9l9mw8k9So4AgIQG1BmxL5euybzNFg= MIME-Version: 1.0 In-Reply-To: <20110107210152.GG7355@mtj.dyndns.org> References: <20101224122338.172750730@chello.nl> <20101224123742.724459093@chello.nl> <1294054362.2016.74.camel@laptop> <20110104064542.GF3402@amd> <1294254867.2016.281.camel@laptop> <1294306353.2016.304.camel@laptop> <20110106103841.GA3493@amd> <1294338395.2016.381.camel@laptop> <20110107210152.GG7355@mtj.dyndns.org> Date: Fri, 7 Jan 2011 16:13:53 -0500 X-Google-Sender-Auth: kurgJYtfMQubri8KFq_EHrTkWMk Message-ID: Subject: Re: [RFC][PATCH] spinlock: Kill spin_unlock_wait() From: Jeff Garzik To: Tejun Heo Cc: Peter Zijlstra , Nick Piggin , Linus Torvalds , Chris Mason , Frank Rowand , Ingo Molnar , Thomas Gleixner , Mike Galbraith , Oleg Nesterov , Paul Turner , Jens Axboe , Yong Zhang , linux-kernel@vger.kernel.org, Jeremy Fitzhardinge , Linux-Arch , linux-scsi , "IDE/ATA development list" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 7, 2011 at 4:01 PM, Tejun Heo wrote: > On Thu, Jan 06, 2011 at 07:26:35PM +0100, Peter Zijlstra wrote: >> Jeff, Tejun, could you look at the ata-eh thing, then I'll put sorting >> through the futex thing on my todo list. > > Hmm... I think the ->eng_timeout path is already dead.  We no longer > have any in-kernel implementation, so killing spin_unlock_wait() > should be fine.  I'll follow up with removal of the unused callback. Unfortunately... libsas continues to avoid the new EH :( It's a hairy mess to untangle, too. libata does proper error handling of ATA device errors, notably NCQ error handling, which libsas sorely misses. But libata new EH assumes a bit too much about "owning" the entirety of the EH process. These assumptions are proper for wholly ATA drivers (drivers/ata/*) where new EH can drive the EH process, but in the SAS situation, a phy in SATA mode is simply a subset of a larger set of EH conditions that must be handled. Thus libsas uses the ancient libata hook ->phy_reset and lacks ->error_handler. I think libata's old-EH path is entirely SAS-specific at this point. Jeff P.S. Note that libsas and ipr are peers; thus ipr driver also uses old EH.