Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760730Ab2EKQXK (ORCPT ); Fri, 11 May 2012 12:23:10 -0400 Received: from mga02.intel.com ([134.134.136.20]:5527 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753925Ab2EKQXI (ORCPT ); Fri, 11 May 2012 12:23:08 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.67,352,1309762800"; d="scan'208";a="139558580" From: "Luck, Tony" To: Chen Gong CC: "linux-kernel@vger.kernel.org" , Ingo Molnar , Borislav Petkov , "Huang, Ying" , Hidetoshi Seto Subject: RE: [PATCH 1/2] x86/mce: Only restart instruction after machine check recovery if it is safe Thread-Topic: [PATCH 1/2] x86/mce: Only restart instruction after machine check recovery if it is safe Thread-Index: AQHNL0Z9V8VH9kbX5E+oEyS4j60vMJbExUew Date: Fri, 11 May 2012 16:23:06 +0000 Message-ID: <3908561D78D1C84285E8C5FCA982C28F192ED527@ORSMSX104.amr.corp.intel.com> References: <4FACBD9B.8070407@linux.intel.com> In-Reply-To: <4FACBD9B.8070407@linux.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.22.254.140] Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id q4BGNJrc020310 Content-Length: 642 Lines: 15 > How about using following condition to decrease the execution time? > if (mi->restartable == 0 || > memory_failure(pfn, MCE_VECTOR, MF_ACTION_REQUIRED) < 0) > > Since restart operation is impossible, whether recovery operation can > be avoided? Because I still want the side-effects from memory_failure() of marking the page as poisoned and SRAO signal to other users of the page (or no signal at all to the others for clean LRU page). Perhaps this deserves a comment -Tony ????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?