Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756038Ab3FGUSC (ORCPT ); Fri, 7 Jun 2013 16:18:02 -0400 Received: from longford.logfs.org ([213.229.74.203]:59467 "EHLO longford.logfs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752810Ab3FGUSA (ORCPT ); Fri, 7 Jun 2013 16:18:00 -0400 Date: Fri, 7 Jun 2013 14:48:44 -0400 From: =?utf-8?B?SsO2cm4=?= Engel To: Andy Shevchenko Cc: "linux-kernel@vger.kernel.org" , Chris Mason , linux-btrfs@vger.kernel.org Subject: Re: [PATCH 1/2] list: add list_for_each_entry_del Message-ID: <20130607184844.GE25323@logfs.org> References: <1370280485-10047-1-git-send-email-joern@logfs.org> <1370280485-10047-2-git-send-email-joern@logfs.org> <20130606181248.GA17707@logfs.org> <20130607163658.GC25323@logfs.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 772 Lines: 24 On Fri, 7 June 2013 21:30:16 +0300, Andy Shevchenko wrote: > > > > spin_lock > > list_for_each_entry_safe > > list_del > > spin_unlock > > Who is doing such thing? Replace list_for_each_entry_safe with 'while (!list_empty(...))' and just grep. My patch is about 'while (!list_empty(...))', not about list_for_each_entry_safe. Jörn -- There are three principal ways to lose money: wine, women, and engineers. While the first two are more pleasant, the third is by far the more certain. -- Baron Rothschild -- 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/