Return-path: Received: from lb2-smtp-cloud6.xs4all.net ([194.109.24.28]:35710 "EHLO lb2-smtp-cloud6.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752526AbbAMQ7r (ORCPT ); Tue, 13 Jan 2015 11:59:47 -0500 Message-ID: <1421168382.2615.1.camel@xs4all.nl> Subject: Re: [PATCH] cx23885/vb2 regression: please test this patch From: Jurgen Kramer To: Hans Verkuil Cc: linux-media , ray@apollo.lv Date: Tue, 13 Jan 2015 17:59:42 +0100 In-Reply-To: <54B52548.7010109@xs4all.nl> References: <54B52548.7010109@xs4all.nl> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-media-owner@vger.kernel.org List-ID: Hi Hans, On Tue, 2015-01-13 at 15:01 +0100, Hans Verkuil wrote: > Hi Raimonds, Jurgen, > > Can you both test this patch? It should (I hope) solve the problems you > both had with the cx23885 driver. > > This patch fixes a race condition in the vb2_thread that occurs when > the thread is stopped. The crucial fix is calling kthread_stop much > earlier in vb2_thread_stop(). But I also made the vb2_thread more > robust. Thanks. Will test your patch and report back. Regards, Jurgen