Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751160AbWCZHy3 (ORCPT ); Sun, 26 Mar 2006 02:54:29 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751161AbWCZHy3 (ORCPT ); Sun, 26 Mar 2006 02:54:29 -0500 Received: from smtp.osdl.org ([65.172.181.4]:50627 "EHLO smtp.osdl.org") by vger.kernel.org with ESMTP id S1751160AbWCZHy2 (ORCPT ); Sun, 26 Mar 2006 02:54:28 -0500 Date: Sat, 25 Mar 2006 23:50:35 -0800 From: Andrew Morton To: Dave Jones Cc: linux-kernel@vger.kernel.org Subject: Re: smp_locks reference_discarded errors Message-Id: <20060325235035.5fcb902f.akpm@osdl.org> In-Reply-To: <20060325033948.GA15564@redhat.com> References: <20060325033948.GA15564@redhat.com> X-Mailer: Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-redhat-linux-gnu) Mime-Version: 1.0 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 Content-Length: 1242 Lines: 26 Dave Jones wrote: > > since the addition of smp alternatives, the following is occuring.. > > Error: ./drivers/md/md.o .smp_locks refers to 0000008c R_386_32 .exit.text > Error: ./drivers/usb/storage/libusual.o .smp_locks refers to 00000008 R_386_32 .exit.text > Error: ./net/802/psnap.o .smp_locks refers to 00000000 R_386_32 .exit.text > Error: ./drivers/pci/hotplug/ibmphp_hpc.o .smp_locks refers to 00000008 R_386_32 .exit.text > Error: ./drivers/pci/hotplug/ibmphp_hpc.o .smp_locks refers to 0000000c R_386_32 .exit.text > > example .config at http://people.redhat.com/davej/kernel-2.6.16-i686-smp.config > I guess an atomic operation in __exit code will cause that. down() and atomic_dec_and_test() in two cases. I suspect most of these callsites are just wrongly coded - it's pretty unusual for __exit code to really need to lock anything - what is there to be racing against? This is emitted by reference_discarded.pl? - 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/