From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 In-Reply-To: List-ID: 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.