Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp957202img; Tue, 26 Feb 2019 11:29:48 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibh5VfbHSQRpWlNCkB9uQig5HF48Fxk99WXHceFIMgBxIB/HV0BUlhLrDUKh4E+IacfwZqz X-Received: by 2002:a63:3446:: with SMTP id b67mr25916230pga.122.1551209388558; Tue, 26 Feb 2019 11:29:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551209388; cv=none; d=google.com; s=arc-20160816; b=vlAfLI+DfX5U+7rh9QJnLpn6xa7cMiLnKSYuF2jXF4RITCukZvagXejzHUTWw1vK5P WGY4f5Uar8fMRJC/AEEdhnG0faVdId4cH/Bu2KvGYUn9sXPS+el1Dva1Id5AvKJsAamg gMvFwB4VXTnhq8OB9e+eIhUHPeg6oAfnABcXeVW3sFWGin98q4//RNkVMNh+mW03y/xq uuJ+rb28EJ3e3dWPM5SsgYmQDMXHIuBmiQR3YG0WaBM00vBoMrRMeUo6KAZrXffbu3CQ 2Gfl8utVTmX0upIv12VXeDyOgCMaRI0PtYTwd0C+havmO2HuUoZqYnGHpelak8K+Wuip ppDg== 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 :in-reply-to:references:mime-version:dkim-signature; bh=kxqmNmB3vPxLiIOD/Vp/eA6xu4IV9Wmk6Kx9vpGJNQg=; b=agDqIuPCX/D6fdICNDXiEFXu78G++gyWh86TJkLS/FncLzTen+LrOkxlR8fe6YGfjT Mo0zDVqCHQSA3XHlSXPnOpLkoEs+x33Hx8uq9s+ZgGkrwPFd4OvbhKaRanA54nt884pd M8VkVQBG5UIxdg7q4FQxzU2AdRrgN1vBK39AnNtyy1E6GYuNI5NmuPy68QU9jQHUngq6 jGAF8LsEEo0musT9tLK+DJKau6Qrcvj3f3xGM8ZkU98E1CghsaHao8guC48dLvZu4dBl k2lp+kc9tZMouRNQ/NJHFO2YnmN4W5N+rylP4GX5hzhdy4Fk0nbFmz3fB/XYUWnxhpkW g7kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="eIy1fJq/"; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f5si9486165pgo.394.2019.02.26.11.29.32; Tue, 26 Feb 2019 11:29:48 -0800 (PST) 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=@chromium.org header.s=google header.b="eIy1fJq/"; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728768AbfBZT1w (ORCPT + 99 others); Tue, 26 Feb 2019 14:27:52 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:46114 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728673AbfBZT1v (ORCPT ); Tue, 26 Feb 2019 14:27:51 -0500 Received: by mail-lf1-f66.google.com with SMTP id g12so10505360lfb.13 for ; Tue, 26 Feb 2019 11:27:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kxqmNmB3vPxLiIOD/Vp/eA6xu4IV9Wmk6Kx9vpGJNQg=; b=eIy1fJq/TkcoYGKwOqOWNV2Oqs5Za8rH61I+zD2huHLiBD7XNSLYSW050QFR3I+qkd kyDnvyP6py9eyeyWZi+Wne8NA0n4tLFoHynrfaSEYh/IILLnhXlofWxdR5DiaoSfG0Vn VnwBH6+t+rVnr6PEsnv87WvtPBZeHnhU0blxM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kxqmNmB3vPxLiIOD/Vp/eA6xu4IV9Wmk6Kx9vpGJNQg=; b=EucagCIhIe8qp31TGneGykvqQoxi5CHgNv2DdODLLc9JwuPfzH2uNpSQ6hmSA1PBeh 6E/0qbSCC4/L7q18i2DPJIxBY+bPXDRg+9noaWDt3qJE87y43kpvfTN25ZeL+vhfN8Vz 9tKTS5wyL7foiVgb8ndvKmhFmxgn2riTIM1rKJ1kWKsM1uCaR5ni8HdUevaflxQA49GN W5KLMBBqvmIGz6kXAEkHdwtJE+o27NkK5XG1pHwrJYc0PJ6nbtd8LzgpC8YGnT31JGAK q3HUHWxnFlsXwTXv00CrA2q7+T7i6/zUvnd7qsOfgoGqFrbdKesIxq+7Osc7KI09COIr YmqQ== X-Gm-Message-State: AHQUAuYuRAMiBJnvQTZ1sn/kVamdHyteKT8b68Xb1uBVxtmyyk8QAZi9 77r69taxSLnNnqL3f2KPd5Il5WR4+kg= X-Received: by 2002:a19:cbc6:: with SMTP id b189mr11536874lfg.34.1551209269628; Tue, 26 Feb 2019 11:27:49 -0800 (PST) Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com. [209.85.167.47]) by smtp.gmail.com with ESMTPSA id u15sm2147116lja.73.2019.02.26.11.27.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Feb 2019 11:27:47 -0800 (PST) Received: by mail-lf1-f47.google.com with SMTP id r123so2160977lff.6 for ; Tue, 26 Feb 2019 11:27:47 -0800 (PST) X-Received: by 2002:a19:f607:: with SMTP id x7mr14526026lfe.47.1551209267220; Tue, 26 Feb 2019 11:27:47 -0800 (PST) MIME-Version: 1.0 References: <20190207205730.199332-1-evgreen@chromium.org> <20190207205730.199332-2-evgreen@chromium.org> In-Reply-To: From: Evan Green Date: Tue, 26 Feb 2019 11:27:10 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/2] loop: Report EOPNOTSUPP properly To: "Martin K. Petersen" Cc: Jens Axboe , Bart Van Assche , Gwendal Grignou , Alexis Savery , Ming Lei , linux-block , LKML 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 Wed, Feb 13, 2019 at 6:32 PM Martin K. Petersen wrote: > > > Evan, > > > Properly plumb out EOPNOTSUPP from loop driver operations, which may > > get returned when for instance a discard operation is attempted but > > not supported by the underlying block device. Before this change, > > everything was reported in the log as an I/O error, which is scary and > > not helpful in debugging. > > Reviewed-by: Martin K. Petersen > Hi Jens, I think this one at least is ready to go. -Evan