From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755214Ab1CNRaa (ORCPT ); Mon, 14 Mar 2011 13:30:30 -0400 Received: from smtp-out.google.com ([216.239.44.51]:3222 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752348Ab1CNRa2 (ORCPT ); Mon, 14 Mar 2011 13:30:28 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=google.com; s=beta; h=date:from:x-x-sender:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version:content-type; b=qBg+WqGkgafeuPe5td/ayZaMA7/TQK/JUvJecE4yoAS8aUp42+WupWZ0M4ARHOZ5YW GNHyub3IKV/fGfMmQAbw== Date: Mon, 14 Mar 2011 10:30:20 -0700 (PDT) From: Hugh Dickins X-X-Sender: hugh@sister.anvils To: Mel Gorman cc: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: swap: Unlock swapfile inode mutex before closing file on bad swapfiles In-Reply-To: <20110314122746.GA32408@suse.de> Message-ID: References: <20110314122746.GA32408@suse.de> User-Agent: Alpine 2.00 (LSU 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-System-Of-Record: true Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 14 Mar 2011, Mel Gorman wrote: > This patch releases the mutex if its held before calling filep_close() > so swapon fails as expected without deadlock when the swapfile is backed > by NFS. If accepted for 2.6.39, it should also be considered a -stable > candidate for 2.6.38 and 2.6.37. > > Signed-off-by: Mel Gorman Acked-by: Hugh Dickins Thank you!