Re: [PATCH 09/31] block: pass a gendisk to ->open

Jinpu Wang
2023-06-07T09:43:02Z

On Tue, Jun 6, 2023 at 9:40 AM Christoph Hellwig <hch@lst.de> wrote:
>
> ->open is only called on the whole device. Make that explicit by
> passing a gendisk instead of the block_device.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
> arch/um/drivers/ubd_kern.c | 5 ++---
> arch/xtensa/platforms/iss/simdisk.c | 4 ++--
> block/bdev.c | 2 +-
> drivers/block/amiflop.c | 8 ++++----
> drivers/block/aoe/aoeblk.c | 4 ++--
> drivers/block/ataflop.c | 16 +++++++--------
> drivers/block/drbd/drbd_main.c | 6 +++---
> drivers/block/floppy.c | 30 +++++++++++++++--------------
> drivers/block/nbd.c | 8 ++++----
> drivers/block/pktcdvd.c | 6 +++---
> drivers/block/rbd.c | 4 ++--
> drivers/block/rnbd/rnbd-clt.c | 4 ++--
Acked-by: Jack Wang <jinpu.wang@ionos.com> # for rnbd