Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934538AbcCPRLm (ORCPT ); Wed, 16 Mar 2016 13:11:42 -0400 Received: from mail.kernel.org ([198.145.29.136]:49056 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932369AbcCPRLj (ORCPT ); Wed, 16 Mar 2016 13:11:39 -0400 Date: Wed, 16 Mar 2016 10:11:35 -0700 From: Shaohua Li To: Anna-Maria Gleixner Cc: linux-kernel@vger.kernel.org, rt@linutronix.de, linux-raid@vger.kernel.org Subject: Re: [PATCH] md/raid5: Cleanup cpu hotplug notifier Message-ID: <20160316171135.GA80081@kernel.org> References: <1458116723-66984-1-git-send-email-anna-maria@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1458116723-66984-1-git-send-email-anna-maria@linutronix.de> 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 Content-Length: 486 Lines: 13 On Wed, Mar 16, 2016 at 09:25:23AM +0100, Anna-Maria Gleixner wrote: > The raid456_cpu_notify() hotplug callback lacks handling of the > CPU_UP_CANCELED case. That means if CPU_UP_PREPARE fails, the scratch > buffer is leaked. > > Add handling for CPU_UP_CANCELED[_FROZEN] hotplug notifier transitions > to free the scratch buffer. > > CC: Shaohua Li > CC: linux-raid@vger.kernel.org > Signed-off-by: Anna-Maria Gleixner Applied, thanks!