Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp690756imm; Fri, 15 Jun 2018 04:51:39 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKDhQtdW09+c0LSRuG7GirVxCrZ5TJrDzXEun7dj26foYp2YoaFJ5KA6qw3w7k43PCeWmix X-Received: by 2002:a17:902:683:: with SMTP id 3-v6mr1670419plh.291.1529063498972; Fri, 15 Jun 2018 04:51:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529063498; cv=none; d=google.com; s=arc-20160816; b=rkQ11fihUm+JLGbm2c1OZntv/RYZ8mqiR+uca/EUjXTIezjbfdA80Z8s6+X5pDGtgh Rd8OjAjIVJUN+SU+FrJ9PeMY431utnFqZZEp+je/uovgXnz34VjA9hBsWIrBzt9u66pE EZFb9OW/2Yb9F0IbmrOYrVKhemYGU/F9cKU4NfneB3/aewbhaTnpsxX0+BD8zLkBI6iF UC8QBBaAk/M8Ez9N///QSB0Buyzm5db6FbTvE7r3L7QNc7XeYoiZ9PpGslrPz4b8PVp6 UT30GKy+MosahhfJSUGzRFMRIbd6NsQrZ+DrrzX6AGD3+BWdSsylOk1fiT94qA/6it3U 3Uiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=hcJ5lPG+FazufUl7fIvPbszcP6Vqs5PlkmuGzAwOZng=; b=V7E21zZB3KVDklqc5AwIVpZm2XTIiESLQSsNe6ARF+vs2u2te68oUObDcYVpQEmqmo gbhRJ0W+nP7mMRqjEbh+PJDVQgWCHrrbc0WeOj4eEZrTZMOSP1etNU6zgRoA2e2cOgAu Yr/bfUHFlaFdNGxHOceRITibUEmLDQXNn+2Cj/FSdIjPCP1pDWbGNjJETUK7b5MYTjtL MTzHXDHk84jBHJHEteYqR7UyB2+Ppt4fE3q5v4fvrMLgjH850dBMUZt4ZiHgj00rQfw4 O5jfJH2gTUbIB6hU3uW2ZzEOYrbXT/VGyT1KwT5Iyeltn3MetwRiggt++a+5xZEUhsSR 4Kag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z14-v6si6392473pgz.264.2018.06.15.04.50.54; Fri, 15 Jun 2018 04:51:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755936AbeFOLtw (ORCPT + 99 others); Fri, 15 Jun 2018 07:49:52 -0400 Received: from verein.lst.de ([213.95.11.211]:50732 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755650AbeFOLtv (ORCPT ); Fri, 15 Jun 2018 07:49:51 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id A469268E44; Fri, 15 Jun 2018 13:58:19 +0200 (CEST) Date: Fri, 15 Jun 2018 13:58:19 +0200 From: Christoph Hellwig To: Ming Lei Cc: "jianchao.wang" , Jens Axboe , Christoph Hellwig , James Bottomley , "Martin K. Petersen" , linux-block , Linux SCSI List , Linux Kernel Mailing List Subject: Re: [PATCH 1/2] block: export __blk_complete_request Message-ID: <20180615115819.GA25694@lst.de> References: <1529027847-29085-1-git-send-email-jianchao.w.wang@oracle.com> <3dd3f82a-5b68-f039-3a8a-7c5fe4e24c3e@oracle.com> <3970fdc7-52d9-d05b-4118-059d48bf4f2d@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 15, 2018 at 11:20:40AM +0800, Ming Lei wrote: > > but blk_mq_check_expired doesn't do that. > > do I miss anything ? > > Right, that is the difference between blk-mq and legacy now, then if scsi-mq > drivers can work well, they should work well with the following change in the > non-mq mode: We'll still need referene counting against reuse and/or premature freeing of requests.