Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755956Ab1FNKHG (ORCPT ); Tue, 14 Jun 2011 06:07:06 -0400 Received: from mx1.redhat.com ([209.132.183.28]:65481 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755922Ab1FNKHD (ORCPT ); Tue, 14 Jun 2011 06:07:03 -0400 Date: Tue, 14 Jun 2011 12:06:55 +0200 From: Johannes Weiner To: Chris Wright Cc: Andrea Arcangeli , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: thp: minor lock simplification in __khugepaged_exit Message-ID: <20110614100655.GF6371@redhat.com> References: <20110610233355.GO23047@sequoia.sous-sol.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110610233355.GO23047@sequoia.sous-sol.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 595 Lines: 13 On Fri, Jun 10, 2011 at 04:33:55PM -0700, Chris Wright wrote: > The lock is released first thing in all three branches. Simplify this > by unconditionally releasing lock and remove else clause which was only > there to be sure lock was released. > > Signed-off-by: Chris Wright Acked-by: Johannes Weiner -- 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/