Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757250AbbBEMXn (ORCPT ); Thu, 5 Feb 2015 07:23:43 -0500 Received: from mail-bl2on0136.outbound.protection.outlook.com ([65.55.169.136]:54784 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752122AbbBEMXl (ORCPT ); Thu, 5 Feb 2015 07:23:41 -0500 X-WSS-ID: 0NJAT34-08-XEW-02 X-M-MSG: Message-ID: <54D360AE.8090603@amd.com> Date: Thu, 5 Feb 2015 14:23:10 +0200 From: Oded Gabbay Organization: AMD User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Joerg Roedel , Peter Zijlstra CC: , Benjamin LaHaise , Jesse Barnes , , , Subject: Re: [PATCH v2] iommu/amd: Use wait_event in put_pasid_state_wait References: <1423062622-28257-1-git-send-email-joro@8bytes.org> <20150204163450.GD5029@twins.programming.kicks-ass.net> <20150205114020.GQ3702@8bytes.org> In-Reply-To: <20150205114020.GQ3702@8bytes.org> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.20.0.84] X-EOPAttributedMessage: 0 Authentication-Results: spf=none (sender IP is 165.204.84.222) smtp.mailfrom=Oded.Gabbay@amd.com; 8bytes.org; dkim=none (message not signed) header.d=none; X-Forefront-Antispam-Report: CIP:165.204.84.222;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(428002)(24454002)(51704005)(377454003)(479174004)(33656002)(46102003)(50466002)(19580395003)(50986999)(65816999)(80316001)(83506001)(59896002)(64126003)(19580405001)(76176999)(54356999)(77156002)(87266999)(87936001)(23746002)(105586002)(36756003)(47776003)(2950100001)(65806001)(62966003)(92566002)(77096005)(101416001)(86362001)(3940600001);DIR:OUT;SFP:1102;SCL:1;SRVR:CO1PR02MB205;H:atltwp02.amd.com;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:CO1PR02MB205; X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004);SRVR:CO1PR02MB205; X-Forefront-PRVS: 0478C23FE0 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:;SRVR:CO1PR02MB205; X-OriginatorOrg: amd4.onmicrosoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Feb 2015 12:23:36.8412 (UTC) X-MS-Exchange-CrossTenant-Id: fde4dada-be84-483f-92cc-e026cbee8e96 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fde4dada-be84-483f-92cc-e026cbee8e96;Ip=[165.204.84.222] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR02MB205 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 828 Lines: 24 On 02/05/2015 01:40 PM, Joerg Roedel wrote: > So this should be the correct version then. > > From 2a52250e542d8964c8285a37b71fe838a44c05c4 Mon Sep 17 00:00:00 2001 > From: Joerg Roedel > Date: Wed, 4 Feb 2015 15:50:38 +0100 > Subject: [PATCH 1/2] iommu/amd: Use wait_event in put_pasid_state_wait > > Now that I learned about possible spurious wakeups this > place needs fixing too. Replace the self-coded sleep variant > with the generic wait_event() helper. > > Signed-off-by: Joerg Roedel Tested-by: Oded Gabbay Oded -- 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/