From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by aws-us-west-2-korg-lkml-1.web.codeaurora.org (Postfix) with ESMTP id 7379CC433EF for ; Fri, 15 Jun 2018 11:49:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2A5EA208B2 for ; Fri, 15 Jun 2018 11:49:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2A5EA208B2 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755989AbeFOLtw (ORCPT ); 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.