From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757249AbcKCLei (ORCPT ); Thu, 3 Nov 2016 07:34:38 -0400 Received: from relay1.mentorg.com ([192.94.38.131]:46581 "EHLO relay1.mentorg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757151AbcKCLeh (ORCPT ); Thu, 3 Nov 2016 07:34:37 -0400 Date: Thu, 3 Nov 2016 17:04:22 +0530 From: Sandeep Jain To: Richard Weinberger CC: David Woodhouse , Brian Norris , "linux-mtd@lists.infradead.org" , LKML , Steve Longerbeam , Jim Baxter Subject: Re: [PATCH] mtd: Allocate bdi objects dynamically Message-ID: <20161103113421.GA4873@mentor.com> References: <1470319275-9465-1-git-send-email-Sandeep_Jain@mentor.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [137.202.0.87] X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To SVR-IES-MBX-03.mgc.mentorg.com (139.181.222.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear Maintainers, This patch is reviewed by Richard. Requesting for Maintainer's attention for patch merge. Thanks & Regards, Sandeep Jain On Sat, Sep 17, 2016 at 04:41:47PM +0200, Richard Weinberger wrote: > On Thu, Aug 4, 2016 at 4:01 PM, Sandeep Jain wrote: > > From: Steve Longerbeam > > > > The MTD backing dev info objects mtd_bdi was statically allocated. > > So when MTD is built as a loadable module, this object fall in the > > vmalloc address space. > > > > The problem with that, is that the BDI APIs use wake_up_bit(), which calls > > virt_to_page() to retrieve the memory zone of the page containing the > > wait_queue to wake up, and virt_to_page() is not valid for vmalloc or > > highmem addresses. > > > > Fix this by allocating the BDI objects dynamically with kmalloc. The > > objects now fall in the logical address space so that BDI APIs will > > work in all cases (mtd builtin or module). > > > > Signed-off-by: Steve Longerbeam > > Signed-off-by: Jim Baxter > > Signed-off-by: Sandeep Jain > > Reviewed-by: Richard Weinberger > > -- > Thanks, > //richard