[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20211025084105.GA14544@lst.de>
Date: Mon, 25 Oct 2021 10:41:05 +0200
From: Christoph Hellwig <hch@....de>
To: Max Gurtovoy <mgurtovoy@...dia.com>
Cc: "Michael S. Tsirkin" <mst@...hat.com>,
linux-kernel@...r.kernel.org, Jens Axboe <axboe@...nel.dk>,
Christoph Hellwig <hch@....de>,
kernel test robot <lkp@...el.com>,
Jason Wang <jasowang@...hat.com>,
Paolo Bonzini <pbonzini@...hat.com>,
Stefan Hajnoczi <stefanha@...hat.com>,
Feng Li <lifeng1519@...il.com>,
Israel Rukshin <israelr@...dia.com>,
virtualization@...ts.linux-foundation.org,
linux-block@...r.kernel.org
Subject: Re: [PATCH] virtio_blk: corrent types for status handling
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.
Powered by blists - more mailing lists