Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp241666imm; Thu, 14 Jun 2018 19:18:20 -0700 (PDT) X-Google-Smtp-Source: ADUXVKL7XSHNfoO8t97JwOPc26Y51/NJVLsto3ctYYXUVZ8zHbJ/N5J8Q0OBLkp31APwQqE6mDDD X-Received: by 2002:a17:902:8bc6:: with SMTP id r6-v6mr5635689plo.257.1529029100612; Thu, 14 Jun 2018 19:18:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529029100; cv=none; d=google.com; s=arc-20160816; b=wZCgXQBaS4fjHj77qrSR+LEUudlj5R8M/eKEQv2HRk08H/etSLl1Ww5GLdFkg8fTo4 6spvy/Vb6gxl3WFchJ06nY5ckNdYA1A8bXN6l7nk9fjfLClv3iXGESs7k1+nPDcujfRE IzHXt1Aj/dITjcOdU6st8GOeayBm/8TDF0eJANN7Mwox+jWWmqjhGhGFiQg8oejr2aMm Brv7RK/VHsSlk9gDunfn90FqJXRgIpwxfYv0vj1GMHVakbmg0vIted1Qn6DPT+TuzWrM Qv6neJPPPTifwevNjJBgFavKcEFGfRK5P6TMT3bvSVP1q0Uy+rIXlJWUqKV5EA8tp6sG qMuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=CF542w8LLdst1hs++0JEVWNvVMqX6e9wfgrfMVZmZck=; b=kolIcbEjPGf+yRK5Nvet70a7hOqqEbs6SA8rIpA3GY6C5pMfO0o+b0kXO2lpnRaFvo uVc2Iw+SvNTw6ttlozWPLjUNH5nQr04GQ7/xZQBcpnd2Pf166NMaeIrQVTTUqqWjTyI2 ucAcNaa+3IJTlWjH5WVCenbXGFntEL2xvVuns+QIHA9dZ7PRMzYJQZLDwNXKI9PAAHeV Id/AZHLEQivaFS65vZH/Q2/kbRbiDPjiPzB7I2Ug0HVTtVgtljiXgPdengZYE7fuM8pW aZhZaeBfECbL7ctZ3mfZ3T+77bJRYev53BYWmXDftkUXZgGpFomiFGXzqjBOhwoA7oRS PMYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=idVb6POA; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x22-v6si6462048pln.235.2018.06.14.19.18.06; Thu, 14 Jun 2018 19:18:20 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=idVb6POA; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965532AbeFOCRe (ORCPT + 99 others); Thu, 14 Jun 2018 22:17:34 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:54638 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965516AbeFOCR3 (ORCPT ); Thu, 14 Jun 2018 22:17:29 -0400 Received: by mail-wm0-f65.google.com with SMTP id o13-v6so1033893wmf.4; Thu, 14 Jun 2018 19:17:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=CF542w8LLdst1hs++0JEVWNvVMqX6e9wfgrfMVZmZck=; b=idVb6POAFCxbWJzOFLhzCqoCiLIX4LuyTDYJZDvO7F5qVV/arUdR5T7HfTT+4uMYYs KI+u3KJtdySnYYKTIOM8x63W6su8PDE8HPEAME3u+2vtBOqn454Q+N1NTF38rs+66Nm4 pT/kfrbSILGeM2U6f+4z8b74LzkAC6ghil/ma6IgqJ7MERXJft5ddZ1GelBI55exeQQh MdWfJKsw8C49xFKIqEw/XRarROMTFGAWpzI4BBqYLtIG6dYy49wgnMuEFsM7WXIgNZ7C 3cg1sV7pK9CmC3cj4HD21EfcodtsfHuz2scsDCgNYACYuJh23+8/zTt6k8u8ka6I/JvV PrVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=CF542w8LLdst1hs++0JEVWNvVMqX6e9wfgrfMVZmZck=; b=d/yn7NqNqbzw2/YntWROJjyS+Wn6WPNp8K/xNNSUmxLoUzSew1y1rvjX/Xk6mF3uvs vAtrWvTNOkg3Yc9ZupHoTSu5TCzjH+1nXRmkDCigIbPvwfKfEgk5Na8bT5M5jGXFP9Th 530coxxq4Z64igr0Ic1QzgAkUlG7Q/rTjqlhWkdlpXDZqe32fpplh/j0Zad9NJ8DrUVu V9KdUtNNSTVpscr1y15b1id/Dpnz1Mo0M2pYDrPx1DUZxhC/pTZcjm0Xy7+ofC2y++y4 ojdQC8BmKZC+geiPaGZtj8RSitzxBFh07i6TKvJky7VQVkzr/7EWIO0OmAIq4vZGUsSY hjCA== X-Gm-Message-State: APt69E2rMypxEl2uK6Qb4bDU8LDUZpuftg9fODSQYosdAwxldKgmd82Y DNT4DtKaKW25RnpaBPVZOgEt0vXIRTGnP1b4nxU= X-Received: by 2002:a1c:aa12:: with SMTP id t18-v6mr78739wme.54.1529029048271; Thu, 14 Jun 2018 19:17:28 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1c:97c6:0:0:0:0:0 with HTTP; Thu, 14 Jun 2018 19:17:26 -0700 (PDT) In-Reply-To: <1529027847-29085-1-git-send-email-jianchao.w.wang@oracle.com> References: <1529027847-29085-1-git-send-email-jianchao.w.wang@oracle.com> From: Ming Lei Date: Fri, 15 Jun 2018 10:17:26 +0800 Message-ID: Subject: Re: [PATCH 1/2] block: export __blk_complete_request To: Jianchao Wang Cc: Jens Axboe , Christoph Hellwig , James Bottomley , "Martin K. Petersen" , linux-block , Linux SCSI List , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" 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 9:57 AM, Jianchao Wang wrote: > After f6e7d48 (block: remove BLK_EH_HANDLED), LLDD is responsible > to complete the timed out request, however, for blk-legacy, the > 'complete' is still marked, blk_complete_request will do nothing, > we export __blk_complete_request for LLDD to complete the request > in timeout path. > > Signed-off-by: Jianchao Wang > --- > block/blk-softirq.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/block/blk-softirq.c b/block/blk-softirq.c > index 01e2b35..15c1f5e 100644 > --- a/block/blk-softirq.c > +++ b/block/blk-softirq.c > @@ -144,6 +144,7 @@ void __blk_complete_request(struct request *req) > > local_irq_restore(flags); > } > +EXPORT_SYMBOL(__blk_complete_request); > > /** > * blk_complete_request - end I/O on a request > -- > 2.7.4 > Looks non-blk-mq timeout code need to convert to ref-counter based approach too? Thanks, Ming Lei