Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752541AbbHJA3p (ORCPT ); Sun, 9 Aug 2015 20:29:45 -0400 Received: from lgeamrelo02.lge.com ([156.147.1.126]:56541 "EHLO lgeamrelo02.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751830AbbHJA3o (ORCPT ); Sun, 9 Aug 2015 20:29:44 -0400 X-Original-SENDERIP: 10.177.222.220 X-Original-MAILFROM: iamjoonsoo.kim@lge.com Date: Mon, 10 Aug 2015 09:35:13 +0900 From: Joonsoo Kim To: Minchan Kim Cc: Andrew Morton , Nitin Gupta , Sergey Senozhatsky , linux-kernel@vger.kernel.org Subject: Re: [PATCH] zram: fix possible race when checking idle_strm Message-ID: <20150810003513.GB26074@js1304-P5Q-DELUXE> References: <1438934609-16924-1-git-send-email-iamjoonsoo.kim@lge.com> <20150807144904.GA32614@blaptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150807144904.GA32614@blaptop> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1193 Lines: 30 On Fri, Aug 07, 2015 at 11:49:04PM +0900, Minchan Kim wrote: > Hi Joonsoo, > > On Fri, Aug 07, 2015 at 05:03:29PM +0900, Joonsoo Kim wrote: > > Currently, when we enter the wait state due to lack of idle stream, > > we check idle_strm list without holding the lock in expanding of > > wait_event define. In this case, some one can see stale value and > > process could fall into wait state without any upcoming wakeup process. > > Although I didn't see any error related to this race, it should be fixed. > > Long time ago, I wondered about lost wake-up problem and found a article. > > http://www.linuxjournal.com/article/8144 > > >From then, I have thought such issue shouldn't happen if something is > wrong since then and I believe it's same issue. > > Could you point out exact code sequence about the problem you mentioned? Hello, I describe exact code sequence in reply of Sergey's mail. It would fully describe the problem. Thanks. -- 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/