From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752216Ab2APGeL (ORCPT ); Mon, 16 Jan 2012 01:34:11 -0500 Received: from mail-iy0-f174.google.com ([209.85.210.174]:35472 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750728Ab2APGeK convert rfc822-to-8bit (ORCPT ); Mon, 16 Jan 2012 01:34:10 -0500 MIME-Version: 1.0 In-Reply-To: <20120116055354.GA15265@localhost> References: <20120115125853.GA9234@localhost> <20120115153838.GA4279@debian> <20120116025331.GA16516@localhost> <20120116055044.GA14857@localhost> <20120116055354.GA15265@localhost> Date: Mon, 16 Jan 2012 15:34:09 +0900 Message-ID: Subject: Re: [PATCH] mm/backing-dev.c: fix crash when USB/SCSI device is detached From: Chanho Min To: Wu Fengguang Cc: Rabin Vincent , Jens Axboe , linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > But wait.. Rabin's patch actually fixes the NULL deference in > the call > >        trace_writeback_wake_forker_thread(bdi); > > The wakeup of the forker thread should be harmless. > The forker thread shoud not be woken up after the bdi is unregistered. Is this also Rabin's intention? Also, I'm not sure the wakeup of the forker thread is harmless as bellows. .. case FORK_THREAD: .. task = kthread_create(bdi_writeback_thread, &bdi->wb, "flush-%s", dev_name(bdi->dev)); Thanks Chanho