From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753068AbbC3OYW (ORCPT ); Mon, 30 Mar 2015 10:24:22 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:45589 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751806AbbC3OYU (ORCPT ); Mon, 30 Mar 2015 10:24:20 -0400 Date: Mon, 30 Mar 2015 16:24:14 +0200 From: "gregkh@linuxfoundation.org" To: EunTaik Lee Cc: "linux-kernel@vger.kernel.org" Subject: Re: Re: Re: [PATCH] fix race condition between device_del and device_add Message-ID: <20150330142414.GB10446@kroah.com> References: <1542775927.100611427724147567.JavaMail.weblogic@epmlwas08c> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1542775927.100611427724147567.JavaMail.weblogic@epmlwas08c> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 30, 2015 at 02:02:27PM +0000, EunTaik Lee wrote: > > The problem was on 3.10.49. > > I carefully looked up the patches again and found out that there was > a patch on 3.18 that will solve the problem > > commit e4a60d139060975eb956717e4f63ae348d4d8cc5 > sysfs: driver core: Fix glue dir race condition by gdp_mutex Yes, you need a "real" lock to fix this type of race condition, I thought we had fixed this a while ago, thanks for verifying it. greg k-h