Re: [dm-devel] [PATCH 38/45] block: switch partition lookup to use struct block_device

2020-11-29 Thread Hannes Reinecke
On 11/28/20 5:15 PM, Christoph Hellwig wrote: Use struct block_device to lookup partitions on a disk. This removes all usage of struct hd_struct from the I/O path. Signed-off-by: Christoph Hellwig Reviewed-by: Jan Kara Acked-by: Coly Li [bcache] Acked-by: Chao Yu

[dm-devel] [PATCH 38/45] block: switch partition lookup to use struct block_device

2020-11-28 Thread Christoph Hellwig
Use struct block_device to lookup partitions on a disk. This removes all usage of struct hd_struct from the I/O path. Signed-off-by: Christoph Hellwig Reviewed-by: Jan Kara Acked-by: Coly Li [bcache] Acked-by: Chao Yu [f2fs] --- block/bio.c

Re: [dm-devel] [PATCH 38/45] block: switch partition lookup to use struct block_device

2020-11-24 Thread Chao Yu
On 2020/11/24 21:27, Christoph Hellwig wrote: Use struct block_device to lookup partitions on a disk. This removes all usage of struct hd_struct from the I/O path, and this allows removing the percpu refcount in struct hd_struct. Signed-off-by: Christoph Hellwig --- block/bio.c

Re: [dm-devel] [PATCH 38/45] block: switch partition lookup to use struct block_device

2020-11-24 Thread Coly Li
On 11/24/20 9:27 PM, Christoph Hellwig wrote: > Use struct block_device to lookup partitions on a disk. This removes > all usage of struct hd_struct from the I/O path, and this allows removing > the percpu refcount in struct hd_struct. > > Signed-off-by: Christoph Hellwig For the bcache part,

[dm-devel] [PATCH 38/45] block: switch partition lookup to use struct block_device

2020-11-24 Thread Christoph Hellwig
Use struct block_device to lookup partitions on a disk. This removes all usage of struct hd_struct from the I/O path, and this allows removing the percpu refcount in struct hd_struct. Signed-off-by: Christoph Hellwig --- block/bio.c| 4 +- block/blk-core.c