Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1186621yba; Fri, 3 May 2019 18:20:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqx4SbpudYsHTEmNPVCAel9wCOOZXJ0rkksravOfY8L+1isEdSIBZSVBynnkOxkFmUq81Zl0 X-Received: by 2002:a17:902:c85:: with SMTP id 5mr7819122plt.172.1556932823013; Fri, 03 May 2019 18:20:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556932823; cv=none; d=google.com; s=arc-20160816; b=IeeQmlf4tM/2TWbKnK7RSxU8RG9x4r69M5Q6wgUGWtTN3AUHXgcJqGLhhslBz59Dx+ jB7za/QYWRw2WHfHeRk5GoPJzBFON4dWrp4syStbGLwCyUb02c8bdQeCmHk57/yB9tP7 6hwCjSywoT6YsPbdyNWGBOdsTvNWu/q8Fdaf5FpNCio9rY/74bdfwmPbYUlhOl7qIGl9 fYl0c4/TB55/CHKw57nsKg5W0cWQu4mWOWxzWQGP0YJ0eXtCTJpadxnINh+QpB4rsMvg YB3E+FMxmhw3nGN5LyxlH8Eyu2cnLG5OUSRA5U5pLyYPsifss3bPcb0uW9MDTEIV1TiT D7AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language:in-reply-to:mime-version :user-agent:date:message-id:autocrypt:openpgp:from:references:cc:to :subject; bh=a9IXq1ExE3LjBqi16WuQaXq/l5pxcNR9gCGN3rok/Ak=; b=DIFbmYDwlLKASr7ck5yHbHwdRIYYcp1k66Ck6axvqYiUIg67tRce5p5EkE34a1LBip V8R5k6w4ajieElbUOg/BZ4gRkURUCZGlrqk/D4v04BzufkwQmUlDSalSxDbCIJUyc2Xq 6E253LZK0U+S10mUjH6Cc+dsU0DHdcdm5Ax8H87cvbHBe/hYJ2tPTLN8tFDjf0fSD37k rIzYV86MAcRfWCQFCoud2OC5HXnW3V0CME1/Ecy0VQJRRC2I7/BeOgEip6Dk/r1S1034 2LTHHYBlF56QIia4kEx6P08EDOixryj0AWB/aggC60V9jvpx85qq2XX2/WVZt94rQNPI i4PA== 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 k91si5110585pld.36.2019.05.03.18.20.07; Fri, 03 May 2019 18:20:23 -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 S1726529AbfEDBPU (ORCPT + 99 others); Fri, 3 May 2019 21:15:20 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:40675 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726042AbfEDBPT (ORCPT ); Fri, 3 May 2019 21:15:19 -0400 Received: by mail-pl1-f195.google.com with SMTP id b3so3502536plr.7; Fri, 03 May 2019 18:15:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language; bh=a9IXq1ExE3LjBqi16WuQaXq/l5pxcNR9gCGN3rok/Ak=; b=drPha09l8ornjRRh0t2yyNmeujW4bqTPr/yR/vaozRTGRrZNggPswNG2Nw6RZU6H6R XpRWEBkWxZJsHFSAQlC42u96nUn376pwCSoNtcuzRgA8lHbx8GsCNwYVJ8eFilnfwm92 roEPrA6Zojn4ubjxnPw79wnGsgE2RGLY4vXQRiJy5DNTcMDF2XzZK1UKhHM5h07jd68D Xcoy7kiXM685BnrHDP9b6K1s6Qnc01FJTMVLdybL7hO4G4tjOSE3eliCr4OUBsLEWPtV wV3umo+OHO3sbmtdiG7VuY57Bcv2QWL9T7HV6Q0Ra/XQJzsZUsHnx20A1QbC55BpxnV3 /HPw== X-Gm-Message-State: APjAAAWnmupasYdVwBqy1MPemjztT6vIbcGw8xedXn+anQjygtJzDNv+ +lJSF6F3QjuFTdOdSlIuB8yTyZ5T X-Received: by 2002:a17:902:7287:: with SMTP id d7mr14937211pll.186.1556932518486; Fri, 03 May 2019 18:15:18 -0700 (PDT) Received: from asus.site ([2601:647:4000:5dd1:a41e:80b4:deb3:fb66]) by smtp.gmail.com with ESMTPSA id h30sm8830268pgi.38.2019.05.03.18.15.16 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Fri, 03 May 2019 18:15:17 -0700 (PDT) Subject: Re: blkdev_get deadlock To: Evan Green , linux-block , LKML Cc: Jens Axboe References: From: Bart Van Assche Openpgp: preference=signencrypt Autocrypt: addr=bvanassche@acm.org; prefer-encrypt=mutual; keydata= mQENBFSOu4oBCADcRWxVUvkkvRmmwTwIjIJvZOu6wNm+dz5AF4z0FHW2KNZL3oheO3P8UZWr LQOrCfRcK8e/sIs2Y2D3Lg/SL7qqbMehGEYcJptu6mKkywBfoYbtBkVoJ/jQsi2H0vBiiCOy fmxMHIPcYxaJdXxrOG2UO4B60Y/BzE6OrPDT44w4cZA9DH5xialliWU447Bts8TJNa3lZKS1 AvW1ZklbvJfAJJAwzDih35LxU2fcWbmhPa7EO2DCv/LM1B10GBB/oQB5kvlq4aA2PSIWkqz4 3SI5kCPSsygD6wKnbRsvNn2mIACva6VHdm62A7xel5dJRfpQjXj2snd1F/YNoNc66UUTABEB AAG0JEJhcnQgVmFuIEFzc2NoZSA8YnZhbmFzc2NoZUBhY20ub3JnPokBOQQTAQIAIwUCVI67 igIbAwcLCQgHAwIBBhUIAgk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EgpbwdUYkH6QdizJJCur4icy8GUNbisFYABeoJ91pnD4IGei3MTdvINSZI5e Message-ID: Date: Fri, 3 May 2019 18:15:15 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------78929E0BE3A126298D42A8E9" Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a multi-part message in MIME format. --------------78929E0BE3A126298D42A8E9 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit On 5/3/19 10:47 AM, Evan Green wrote: > Hey blockies, ^^^^^^^^^^^^ That's the weirdest greeting I have encountered so far on the linux-block mailing list. > I'm seeing a hung task in the kernel, and I wanted to share it in case > it's a known issue. I'm still trying to wrap my head around the stacks > myself. This is our Chrome OS 4.19 kernel, which is admittedly not > 100% vanilla mainline master, but we try to keep it pretty close. > > I can reproduce this reliably within our chrome OS installer, where > it's trying to dd from my system disk (NVMe) to a loop device backed > by a removable UFS card (4kb sectors) in a USB dongle. Although this is not the only possible cause such hangs are often caused by a block driver or SCSI LLD not completing a request. A list of pending requests can be obtained e.g. by running the attached script. Bart. --------------78929E0BE3A126298D42A8E9 Content-Type: text/plain; charset=UTF-8; name="list-pending-block-requests" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="list-pending-block-requests" IyEvYmluL2Jhc2gKCnNob3dfc3RhdGUoKSB7CiAgICBsb2NhbCBhIGRldj0kMQoKICAgIGZv ciBhIGluIGRldmljZS9zdGF0ZSBxdWV1ZS9zY2hlZHVsZXI7IGRvCglbIC1lICIkZGV2LyRh IiBdICYmIGdyZXAgLWFIIC4gIiRkZXYvJGEiCiAgICBkb25lCn0KCmlmIFsgLWUgL3N5cy9r ZXJuZWwvZGVidWcvYmxvY2sgXTsgdGhlbgogICAgZGV2cz0oJChjZCAvc3lzL2tlcm5lbC9k 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