Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757190AbXLLWT4 (ORCPT ); Wed, 12 Dec 2007 17:19:56 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752410AbXLLWTs (ORCPT ); Wed, 12 Dec 2007 17:19:48 -0500 Received: from smtp-103-wednesday.noc.nerim.net ([62.4.17.103]:3532 "EHLO mallaury.nerim.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751147AbXLLWTr (ORCPT ); Wed, 12 Dec 2007 17:19:47 -0500 Date: Wed, 12 Dec 2007 23:19:44 +0100 From: Jean Delvare To: Mauro Carvalho Chehab Cc: Adrian Bunk , Shane , Brandon Philips , linux-kernel@vger.kernel.org, video4linux-list Subject: Re: 2.6.24-rc5 "videobuf_read_start" [drivers/media/video/videobuf-dvb.ko] undefined! Message-ID: <20071212231944.53f09d99@hyperion.delvare> In-Reply-To: <1197469316.4744.22.camel@gaivota> References: <20071212090709.GF14204@stusta.de> <1197457394.4807.40.camel@gaivota> <20071212120308.GG14204@stusta.de> <1197469316.4744.22.camel@gaivota> X-Mailer: Sylpheed-Claws 2.5.5 (GTK+ 2.10.6; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1223 Lines: 30 Hi Mauro, On Wed, 12 Dec 2007 12:21:56 -0200, Mauro Carvalho Chehab wrote: > What happened is that changeset 19bc5133dae9562e8824ef101464061f9854c1d8 > fixed some bad locks. > > After this changeset, videobuf_read_stream() holds q->lock and calls > videobuf_read_start(). To avoid waiting forever for the lock to be > released, he removed the mutex from videobuf_read_start with this line > [1]: > > - err = videobuf_mmap_setup(q, count, size, V4L2_MEMORY_USERPTR); > + err = __videobuf_mmap_setup(q, count, size, V4L2_MEMORY_USERPTR); > > So, after the patch, videobuf_read_start() can't be safely called. So, > just adding EXPORT_SYMBOL_GPL() breaks videobuf-dvb at runtime. > > The proper solution is provided by this changeset: > http://git.kernel.org/?p=linux/kernel/git/mchehab/v4l-dvb.git;a=commitdiff;h=19fb1457990b6b7e15586ec7331541a184233acc There's a "static" missing in that patch: __videobuf_read_start is only used internally. -- Jean Delvare -- 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/