Re: [Drbd-dev] [PATCH 16/27] drbd: use bdev_alignment_offset instead of queue_alignment_offset

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 06.04.22 um 08:05 schrieb Christoph Hellwig:
> The bdev version does the right thing for partitions, so use that.
> 
> Fixes: 9104d31a759f ("drbd: introduce WRITE_SAME support")
> Signed-off-by: Christoph Hellwig <hch@xxxxxx>
> ---
>  drivers/block/drbd/drbd_main.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c
> index d20d84ee7a88e..9d43aadde19ad 100644
> --- a/drivers/block/drbd/drbd_main.c
> +++ b/drivers/block/drbd/drbd_main.c
> @@ -939,7 +939,7 @@ int drbd_send_sizes(struct drbd_peer_device *peer_device, int trigger_reply, enu
>  		p->qlim->logical_block_size =
>  			cpu_to_be32(bdev_logical_block_size(bdev));
>  		p->qlim->alignment_offset =
> -			cpu_to_be32(queue_alignment_offset(q));
> +			cpu_to_be32(bdev_alignment_offset(bdev));
>  		p->qlim->io_min = cpu_to_be32(bdev_io_min(bdev));
>  		p->qlim->io_opt = cpu_to_be32(bdev_io_opt(bdev));
>  		p->qlim->discard_enabled = blk_queue_discard(q);

Acked-by: Christoph Böhmwalder <christoph.boehmwalder@xxxxxxxxxx>



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux