[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: simplify gendisk and request_queue allocation for blk-mq based drivers
- To: Christoph Hellwig <hch@xxxxxx>, Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>, jgross@xxxxxxxx
- From: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
- Date: Fri, 4 Jun 2021 11:58:34 -0400
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5Lwl0zlLLXOjFB6AJtrSZDs8oG/nvzkr5vkS69mpymw=; b=GC1lmTOSH/gq572Yg/UfaoxMO6z7nu/6Iqb7W0WMpvLZFY7HHvRfC8IZ9FXGW9FiwMxfH5dszYc6sQcT5LoleHzDxo2FROWDuQne7ChvwaS5og9zlqrs7HIEtBfMBRrvRdVi4XGi5VhE/7yTjc7sl+euCQ3WewNhBzygAOY1mVNAKaq7tMfZ2Sip5TXH7Em8iuadwMonAmykk6140jiTktJspW/kLtti7QdfiqHJqmhuxV1Qcmv2U8In/ndNIt20iJazu8d49UVWVXiVtpTEKzoyZv0aOzW4nvz2/bOrFIqPJrZCeTIVxNuhPuMFdrVV0iMhZ3o394OsFNA8HVJDOw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c5535t2svwIRZCrsY0mAHIfQV+E8ZgO4f294j6NmP/t3r/Rtg8rZ15MuHEKajs4mEHp4IQ8HPAhj+K6rD0gFwCLyX4ehtA5XHP2v8aPdF63+cskd5NT4SxtKWI+IInwJzxbJR6t6PdlVcfuxmJtbsH73PVJE0n7luLIWDYd+tUQfIL7VBVrR9QFOt11+pVbYNEM3PTAHdbhQkqKAcM1OHB5CnRog7TPsTwzR0r0hX4/NzmtC/cOdpilleb6YJST38wWiUCgW3Z3aL6QGt1Mz0KQ7wjHLqdvHLgC2eV0EMI+kfVeFy2lSjh/ZiA7O1k7NkYcy6owMDCa8kXh7jGVwdw==
- Authentication-results: lst.de; dkim=none (message not signed) header.d=none;lst.de; dmarc=none action=none header.from=oracle.com;
- Cc: Jens Axboe <axboe@xxxxxxxxx>, Justin Sanders <justin@xxxxxxxxxx>, Denis Efremov <efremov@xxxxxxxxx>, Josef Bacik <josef@xxxxxxxxxxxxxx>, Tim Waugh <tim@xxxxxxxxxxxx>, Geoff Levand <geoff@xxxxxxxxxxxxx>, Ilya Dryomov <idryomov@xxxxxxxxx>, "Md. Haris Iqbal" <haris.iqbal@xxxxxxxxx>, Jack Wang <jinpu.wang@xxxxxxxxx>, "Michael S. Tsirkin" <mst@xxxxxxxxxx>, Jason Wang <jasowang@xxxxxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Mike Snitzer <snitzer@xxxxxxxxxx>, Maxim Levitsky <maximlevitsky@xxxxxxxxx>, Alex Dubov <oakad@xxxxxxxxx>, Miquel Raynal <miquel.raynal@xxxxxxxxxxx>, Richard Weinberger <richard@xxxxxx>, Vignesh Raghavendra <vigneshr@xxxxxx>, Heiko Carstens <hca@xxxxxxxxxxxxx>, Vasily Gorbik <gor@xxxxxxxxxxxxx>, Christian Borntraeger <borntraeger@xxxxxxxxxx>, dm-devel@xxxxxxxxxx, linux-block@xxxxxxxxxxxxxxx, nbd@xxxxxxxxxxxxxxxx, linuxppc-dev@xxxxxxxxxxxxxxxx, ceph-devel@xxxxxxxxxxxxxxx, virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx, linux-mmc@xxxxxxxxxxxxxxx, linux-mtd@xxxxxxxxxxxxxxxxxxx, linux-s390@xxxxxxxxxxxxxxx
- Delivery-date: Fri, 04 Jun 2021 15:59:22 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Wed, Jun 02, 2021 at 09:53:15AM +0300, Christoph Hellwig wrote:
> Hi all,
Hi!
You wouldn't have a nice git repo to pull so one can test it easily?
Thank you!
Cc-ing Boris/Juergen - pls see below xen.
>
> this series is the scond part of cleaning up lifetimes and allocation of
> the gendisk and request_queue structure. It adds a new interface to
> allocate the disk and queue together for blk based drivers, and uses that
> in all drivers that do not have any caveats in their gendisk and
> request_queue lifetime rules.
>
> Diffstat:
> block/blk-mq.c | 91 +++++++++++++++-------------------
> block/blk.h | 1
> block/elevator.c | 2
> drivers/block/amiflop.c | 16 +-----
> drivers/block/aoe/aoeblk.c | 33 ++++--------
> drivers/block/aoe/aoedev.c | 3 -
> drivers/block/ataflop.c | 16 +-----
> drivers/block/floppy.c | 20 +------
> drivers/block/loop.c | 19 ++-----
> drivers/block/nbd.c | 53 +++++++------------
> drivers/block/null_blk/main.c | 11 +---
> drivers/block/paride/pcd.c | 19 +++----
> drivers/block/paride/pd.c | 30 ++++-------
> drivers/block/paride/pf.c | 18 ++----
> drivers/block/ps3disk.c | 36 +++++--------
> drivers/block/rbd.c | 52 ++++++-------------
> drivers/block/rnbd/rnbd-clt.c | 35 +++----------
> drivers/block/sunvdc.c | 47 ++++-------------
> drivers/block/swim.c | 34 +++++-------
> drivers/block/swim3.c | 33 +++++-------
> drivers/block/sx8.c | 23 ++------
> drivers/block/virtio_blk.c | 26 ++-------
> drivers/block/xen-blkfront.c | 96
> ++++++++++++++----------------------
> drivers/block/z2ram.c | 15 +----
> drivers/cdrom/gdrom.c | 45 +++++++---------
> drivers/md/dm-rq.c | 9 +--
> drivers/memstick/core/ms_block.c | 25 +++------
> drivers/memstick/core/mspro_block.c | 26 ++++-----
> drivers/mtd/mtd_blkdevs.c | 48 ++++++++----------
> drivers/mtd/ubi/block.c | 68 ++++++++++---------------
> drivers/s390/block/scm_blk.c | 21 ++-----
> include/linux/blk-mq.h | 24 ++++++---
> include/linux/elevator.h | 1
> 33 files changed, 386 insertions(+), 610 deletions(-)
|