Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp80672pxb; Mon, 25 Oct 2021 04:20:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywc028d9ml3gEzQcmOFOQuiWyLYYJY17qJghylx8adfV5jhBRUKg/JPzOkkpU3gmSVO3O3 X-Received: by 2002:a17:907:1b11:: with SMTP id mp17mr21551218ejc.275.1635160816389; Mon, 25 Oct 2021 04:20:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635160816; cv=none; d=google.com; s=arc-20160816; b=MvDdUbdYpnFjHTbCATRKj7oss5yF/Nj19TSaDBVu4+y0oGvL2wQAOR+/9uVS2UiQfU Ry2tG5fojHp0AZOCZDpzJHI1gu660TW01ve+ehbRWB/a0WEiGg2ME6oZqUNWMleDYYHL CXP9GtbRiDPY+f5HgmKuc2Ailaa0HPgXVNBGzYB0XChXfiBUsGuo4/28KL8p5a0W4Oq0 LtEe9tyRsbIvNg/vnfnNVZp21Gy4dXKfYsNAKnnunYS4pLHOflnh28qScLU0P0gK+OQB 3xk98XxQizmMcE+Ddm2qEBJpfOVcXquqqC50lLnnkwa9Z6HaYplYLMGoS3Wqedgz30QX OXgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=IsjXnHKhwIYU0OAbfSwxh2PcQVRM1N5Ro2cZvjX7amo=; b=AiapfCD4VkAEchWP4Ny6wyQtQb9NiStcvelNueSxuCYBz7yQ7z6nWBOioHDTGFN9L8 sSlw2CeWwQDtzMg0gJZRi9TM8xzIMKORbTb/4vdtM90uOf9DgkEOA199zbwP9PpOZ4jY d9QdE6GenCaQ4lhY/GhGTrxnZtad6natEOez/6TobKDjaRZZ2H6ItzMFf+X8o3hEkYSA Z1XFy+G7Mlt7FZxsjg9wr1KH+PWlz4/ZK+W26ER44MCQlXtfBYgnR1jJoTh5Y6sqz7H3 1ATjsX3N2ouR3lOrzGxuW7uplU9LN2IM8vbTm9F4jzALGbBJNSjKq/vFm5YRCuV/nR2Z 7Cow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qk12si1454694ejc.631.2021.10.25.04.19.46; Mon, 25 Oct 2021 04:20:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232158AbhJYInb (ORCPT + 99 others); Mon, 25 Oct 2021 04:43:31 -0400 Received: from verein.lst.de ([213.95.11.211]:56093 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232046AbhJYIna (ORCPT ); Mon, 25 Oct 2021 04:43:30 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id A463468B05; Mon, 25 Oct 2021 10:41:05 +0200 (CEST) Date: Mon, 25 Oct 2021 10:41:05 +0200 From: Christoph Hellwig To: Max Gurtovoy Cc: "Michael S. Tsirkin" , linux-kernel@vger.kernel.org, Jens Axboe , Christoph Hellwig , kernel test robot , Jason Wang , Paolo Bonzini , Stefan Hajnoczi , Feng Li , Israel Rukshin , virtualization@lists.linux-foundation.org, linux-block@vger.kernel.org Subject: Re: [PATCH] virtio_blk: corrent types for status handling Message-ID: <20211025084105.GA14544@lst.de> References: <20211025075825.1603118-1-mst@redhat.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) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 25, 2021 at 11:24:57AM +0300, Max Gurtovoy wrote: > Maybe we can compare the returned status to BLK_STS_OK. But I see we don't > do it also in NVMe subsystem so I guess we can assume BLK_STS_OK == 0 > forever. Jes, BLK_STS_OK == 0 is an intentional allowed short cut. It is not just a block layer design, but part of how the sparse __bitwise__ annotations work.