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

2023-06-07 Thread Jinpu Wang
On Tue, Jun 6, 2023 at 9:40 AM Christoph Hellwig 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 > --- > arch/um/drivers/ubd_kern.c | 5 ++--- > arch/xtensa/platforms/iss/

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

2023-06-07 Thread Christian Brauner
On Tue, Jun 06, 2023 at 09:39:28AM +0200, Christoph Hellwig wrote: > ->open is only called on the whole device. Make that explicit by Ok, that answers my question in https://lore.kernel.org/all/20230607-chefsessel-angeordnet-269f0596f9b3@brauner > passing a gendisk instead of the block_device. >

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

2023-06-07 Thread Hannes Reinecke
On 6/6/23 09:39, Christoph Hellwig 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 --- arch/um/drivers/ubd_kern.c | 5 ++--- arch/xtensa/platforms/iss/simdisk.c | 4 ++-- bloc

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

2023-06-06 Thread Christoph Hellwig
->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 --- arch/um/drivers/ubd_kern.c | 5 ++--- arch/xtensa/platforms/iss/simdisk.c | 4 ++-- block/bdev.c| 2 +- driver