From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin K. Petersen" Subject: Re: [PATCH 02/10] block: virtio-blk: check logical block size Date: Tue, 21 Jul 2020 22:55:07 -0400 Message-ID: References: <20200721105239.8270-1-mlevitsk@redhat.com> <20200721105239.8270-3-mlevitsk@redhat.com> <20200721151437.GB10620@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20200721151437.GB10620@lst.de> (Christoph Hellwig's message of "Tue, 21 Jul 2020 17:14:37 +0200") List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: virtualization-bounces@lists.linux-foundation.org Sender: "Virtualization" To: Christoph Hellwig Cc: "Michael S. Tsirkin" , "open list:NVM EXPRESS DRIVER" , "open list:VIRTIO CORE AND NET DRIVERS" , Hou Tao , Satya Tangirala , Sagi Grimberg , "open list:SCSI CDROM DRIVER" , Maxim Levitsky , Ajay Joshi , Alex Dubov , "James E.J. Bottomley" , Josef Bacik , Ming Lei , "open list:BLOCK LAYER" , Stefan Hajnoczi , Colin Ian King , Keith Busch , "open list:NETWORK BLOCK DEVICE (NBD)" , Bart Van Assche , Maxim Levitsky , Jen List-Id: virtualization@lists.linuxfoundation.org Christoph, > Hmm, I wonder if we should simply add the check and warning to > blk_queue_logical_block_size and add an error in that case. Then > drivers only have to check the error return, which might add a lot > less boiler plate code. Yep, I agree. -- Martin K. Petersen Oracle Linux Engineering