Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759819AbcCDQfK (ORCPT ); Fri, 4 Mar 2016 11:35:10 -0500 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:48792 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758800AbcCDQfG (ORCPT ); Fri, 4 Mar 2016 11:35:06 -0500 Subject: Re: [PATCH] null_blk: add lightnvm null_blk device to the nullb_list To: Wenwei Tao References: <1457108824-3792-1-git-send-email-ww.tao0320@gmail.com> CC: , , Matias Bjorling From: Jens Axboe Message-ID: <56D9B8C5.2090801@fb.com> Date: Fri, 4 Mar 2016 09:33:09 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <1457108824-3792-1-git-send-email-ww.tao0320@gmail.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.54.13] X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-03-04_07:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 850 Lines: 33 On 03/04/2016 09:27 AM, Wenwei Tao wrote: > After register null_blk devices into lightnvm, we forget > to add these devices to the the nullb_list, makes them > invisible to the null_blk driver. > > Signed-off-by: Wenwei Tao > --- > drivers/block/null_blk.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/block/null_blk.c b/drivers/block/null_blk.c > index 64a7b59..cab9759 100644 > --- a/drivers/block/null_blk.c > +++ b/drivers/block/null_blk.c > @@ -742,10 +742,11 @@ static int null_add_dev(void) > > add_disk(disk); > > +done: > mutex_lock(&lock); > list_add_tail(&nullb->list, &nullb_list); > mutex_unlock(&lock); > -done: > + > return 0; > > out_cleanup_lightnvm: Thanks, that looks like a regression caused by a514379b0c77, I'll add a Fixes tag. -- Jens Axboe