Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 21 Feb 2003 07:07:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 21 Feb 2003 07:07:18 -0500 Received: from bay-bridge.veritas.com ([143.127.3.10]:15709 "EHLO mtvmime03.VERITAS.COM") by vger.kernel.org with ESMTP id ; Fri, 21 Feb 2003 07:07:17 -0500 Date: Fri, 21 Feb 2003 12:19:01 +0000 (GMT) From: Hugh Dickins X-X-Sender: hugh@localhost.localdomain To: Thomas Schlichter cc: Dave Jones , Andrew Morton , Linux Kernel Subject: Re: [PATCH][2.5] replace flush_map() in arch/i386/mm/pageattr.c w ith flush_tlb_all() In-Reply-To: <200302211224.39021.schlicht@uni-mannheim.de> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 756 Lines: 21 On Fri, 21 Feb 2003, Thomas Schlichter wrote: > > So here is a minimal change patch that should solve the preempt issue in > flush_map(). > > Instead of just doing a preempt_disable() before and a preempt_enable() > after > the flush_kernel_map() calls I just changed the order so that the preempt > point is not between them... No. All that does is make sure that the cpu you start out on is flushed, once or twice, and the cpu you end up on may be missed. Use preempt_disable and preempt_enable. Hugh - 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/