From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 9 Jan 2017 15:44:20 -0500 From: Josef Bacik Subject: Re: [patch] nbd: blk_mq_init_queue returns an error code on failure, not NULL To: Jens Axboe CC: Omar Sandoval , Jeff Moyer , Markus Pargmann , , , Message-ID: <1483994660.22708.3@smtp.office365.com> In-Reply-To: References: <20170109202707.GA29762@vader.DHCP.thefacebook.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed List-ID: On Mon, Jan 9, 2017 at 3:41 PM, Jens Axboe wrote: > On 01/09/2017 01:27 PM, Omar Sandoval wrote: >> On Mon, Jan 09, 2017 at 03:20:31PM -0500, Jeff Moyer wrote: >>> Additionally, don't assign directly to disk->queue, otherwise >>> blk_put_queue (called via put_disk) will choke (panic) on the errno >>> stored there. >>> >>> Bug found by code inspection after Omar found a similar issue in >>> virtio_blk. Compile-tested only. >>> >>> Signed-off-by: Jeff Moyer >> >> Reviewed-by: Omar Sandoval >> >> Compile-reviewed only :) Josef can probably test it if he cares >> enough, >> but it looks right. > > Looks good to me, too. Josef, you want me to queue this up directly? Y'all are hilarious. Reviewed-by: Josef Bacik Thanks, Josef