From patchwork Fri Jul 22 20:48:32 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gwendal Grignou X-Patchwork-Id: 106389 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id D05E6B6F71 for ; Sat, 23 Jul 2011 06:49:33 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932069Ab1GVUtc (ORCPT ); Fri, 22 Jul 2011 16:49:32 -0400 Received: from smtp-out.google.com ([216.239.44.51]:13828 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932067Ab1GVUtc (ORCPT ); Fri, 22 Jul 2011 16:49:32 -0400 Received: from kpbe15.cbf.corp.google.com (kpbe15.cbf.corp.google.com [172.25.105.79]) by smtp-out.google.com with ESMTP id p6MKmjNX020782; Fri, 22 Jul 2011 13:48:45 -0700 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1311367732; bh=rvPxj7+zakNqAIe9PcVsmLl/PpQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=QlGtDFzPVvBfXBJUH+5Daw6WSue8fo5dTYmBWa0pAWbq5ZOXcgRdjGEwpjiWojx61 r28B3qq3yyqcJls/ionnA== DomainKey-Signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=bPTonlq9NKa4pzUqfyvdGAHzlryh7fySikVJsAXEnTvJ+a8hxJzmJcPMp8zJxj3PZ tQ63TcVuh//StZr1IbdBA== Received: from hippo3.mtv.corp.google.com (hippo3.mtv.corp.google.com [172.18.126.47]) by kpbe15.cbf.corp.google.com with ESMTP id p6MKmdFT003995; Fri, 22 Jul 2011 13:48:40 -0700 Received: by hippo3.mtv.corp.google.com (Postfix, from userid 60833) id 8346A21350; Fri, 22 Jul 2011 13:48:39 -0700 (PDT) From: Gwendal Grignou To: jeff@garzik.org Cc: tj@kernel.org, mlord@pobox.com, linux-ide@vger.kernel.org, lil@marvell.com, hbailey@marvell.com, marc@merlins.org, Gwendal Grignou Subject: [PATCH] Prevent warning during PMP error recovery Date: Fri, 22 Jul 2011 13:48:32 -0700 Message-Id: <1311367712-15331-1-git-send-email-gwendal@google.com> X-Mailer: git-send-email 1.7.3.1 In-Reply-To: <20110721072530.GX3455@htj.dyndns.org> References: <20110721072530.GX3455@htj.dyndns.org> Sender: linux-ide-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org Cleanup sff_pio_task_link when a command is cancel while the pio_task thread has been scheduled. Signed-off-by: Gwendal Grignou Acked-by: Tejun Heo --- drivers/ata/libata-sff.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c index 996a7a5..c24127d 100644 --- a/drivers/ata/libata-sff.c +++ b/drivers/ata/libata-sff.c @@ -1333,6 +1333,7 @@ void ata_sff_flush_pio_task(struct ata_port *ap) cancel_delayed_work_sync(&ap->sff_pio_task); ap->hsm_task_state = HSM_ST_IDLE; + ap->sff_pio_task_link = NULL; if (ata_msg_ctl(ap)) ata_port_dbg(ap, "%s: EXIT\n", __func__);