Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 10 Jul 2001 14:14:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 10 Jul 2001 14:14:46 -0400 Received: from patan.Sun.COM ([192.18.98.43]:2240 "EHLO patan.sun.com") by vger.kernel.org with ESMTP id ; Tue, 10 Jul 2001 14:14:32 -0400 Message-ID: <3B4B47C5.F176C3C2@sun.com> Date: Tue, 10 Jul 2001 11:21:57 -0700 From: Tim Hockin Organization: Sun Microsystems, Inc. X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.4.1 i686) X-Accept-Language: en MIME-Version: 1.0 To: Studierende der Universitaet des Saarlandes , groudier@club-internet.fr, alan@redhat.com, Linux Kernel Mailing List Subject: Re: [PATCH] sym53c8xx timer rework In-Reply-To: <3B4ACF6B.5F194E54@stud.uni-saarland.de> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Studierende der Universitaet des Saarlandes wrote: > > + NCR_LOCK_NCB(np, flags); > > + del_timer(&np->timer); > > + NCR_UNLOCK_NCB(np, flags); > > I'm only reading the diff, but this change looks wrong. > The simplest solution is del_timer_sync() instead of > LOCK;del_timer;UNLOCK. I didn't even realize there was a del_timer_sync(). That does what is needed. 3 lines become 1, I guess. Thanks, CC:ed to Gerard and crew. -- Tim Hockin Systems Software Engineer Sun Microsystems, Cobalt Server Appliances thockin@sun.com - 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/