From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael S. Tsirkin" Subject: Re: [PATCH 15/24] compat_ioctl: scsi: move ioctl handling into drivers Date: Thu, 12 Dec 2019 05:27:33 -0500 Message-ID: <20191212052649-mutt-send-email-mst__2837.00552988506$1576146482$gmane$org@kernel.org> References: <20191211204306.1207817-1-arnd@arndb.de> <20191211204306.1207817-16-arnd@arndb.de> <20191211180155-mutt-send-email-mst@kernel.org> <858768fb-5f79-8259-eb6a-a26f18fb0e04@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <858768fb-5f79-8259-eb6a-a26f18fb0e04@redhat.com> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: virtualization-bounces@lists.linux-foundation.org Sender: "Virtualization" To: Paolo Bonzini Cc: Jens Axboe , Hannes Reinecke , Arnd Bergmann , "Martin K. Petersen" , y2038@lists.linaro.org, Damien Le Moal , "James E.J. Bottomley" , John Garry , linux-kernel@vger.kernel.org, Kai =?iso-8859-1?Q?M=E4kisara?= , linux-block@vger.kernel.org, Alexander Viro , Stefan Hajnoczi , Doug Gilbert , linux-fsdevel@vger.kernel.org, virtualization@lists.linux-foundation.org, linux-scsi@vger.kernel.org, Bart Van Assche List-Id: virtualization@lists.linuxfoundation.org On Thu, Dec 12, 2019 at 01:28:08AM +0100, Paolo Bonzini wrote: > On 12/12/19 00:05, Michael S. Tsirkin wrote: > >> @@ -405,6 +405,9 @@ static int virtblk_getgeo(struct block_device *bd, struct hd_geometry *geo) > >> > >> static const struct block_device_operations virtblk_fops = { > >> .ioctl = virtblk_ioctl, > >> +#ifdef CONFIG_COMPAT > >> + .compat_ioctl = blkdev_compat_ptr_ioctl, > >> +#endif > >> .owner = THIS_MODULE, > >> .getgeo = virtblk_getgeo, > >> }; > > Hmm - is virtio blk lumped in with scsi things intentionally? > > I think it's because the only ioctl for virtio-blk is SG_IO. Oh right, I forgot about that one ... > It makes > sense to lump it in with scsi, but I wouldn't mind getting rid of > CONFIG_VIRTIO_BLK_SCSI altogether. > > Paolo