[Cluster-devel] [PATCH 14/27] block: add a bdev_max_zone_append_sectors helper

2022-04-06 Thread Christoph Hellwig
Add a helper to check the max supported sectors for zone append based on the block_device instead of having to poke into the block layer internal request_queue. Signed-off-by: Christoph Hellwig --- drivers/nvme/target/zns.c | 3 +-- fs/zonefs/super.c | 3 +-- include/linux/blkdev.h|

[Cluster-devel] [PATCH 25/27] block: remove QUEUE_FLAG_DISCARD

2022-04-06 Thread Christoph Hellwig
Just use a non-zero max_discard_sectors as an indicator for discard support, similar to what is done for write zeroes. The only places where needs special attention is the RAID5 driver, which must clear discard support for security reasons by default, even if the default stacking rules would

[Cluster-devel] [PATCH 17/27] block: use bdev_alignment_offset in disk_alignment_offset_show

2022-04-06 Thread Christoph Hellwig
This does the same as the open coded variant except for an extra branch, and allows to remove queue_alignment_offset entirely. Signed-off-by: Christoph Hellwig --- block/genhd.c | 2 +- include/linux/blkdev.h | 8 2 files changed, 1 insertion(+), 9 deletions(-) diff --git

[Cluster-devel] [PATCH 16/27] drbd: use bdev_alignment_offset instead of queue_alignment_offset

2022-04-06 Thread 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 --- drivers/block/drbd/drbd_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/drbd/drbd_main.c

[Cluster-devel] [PATCH 26/27] block: uncouple REQ_OP_SECURE_ERASE from REQ_OP_DISCARD

2022-04-06 Thread Christoph Hellwig
Secure erase is a very different operation from discard in that it is a data integrity operation vs hint. Fully split the limits and helper infrastructure to make the separation more clear. Signed-off-by: Christoph Hellwig --- block/blk-core.c| 2 +- block/blk-lib.c

[Cluster-devel] [PATCH 23/27] block: add a bdev_max_discard_sectors helper

2022-04-06 Thread Christoph Hellwig
Add a helper to query the number of sectors support per each discard bio based on the block device and use this helper to stop various places from poking into the request_queue to see if discard is supported and if so how much. This mirrors what is done e.g. for write zeroes as well.

[Cluster-devel] [PATCH 24/27] block: add a bdev_discard_granularity helper

2022-04-06 Thread Christoph Hellwig
Abstract away implementation details from file systems by providing a block_device based helper to retreive the discard granularity. Signed-off-by: Christoph Hellwig --- block/blk-lib.c | 5 ++--- drivers/block/drbd/drbd_nl.c| 9 +

[Cluster-devel] [PATCH 22/27] block: refactor discard bio size limiting

2022-04-06 Thread Christoph Hellwig
Move all the logic to limit the discard bio size into a common helper so that it is better documented. Signed-off-by: Christoph Hellwig --- block/blk-lib.c | 59 - block/blk.h | 14 2 files changed, 29 insertions(+), 44

[Cluster-devel] [PATCH 20/27] block: use bdev_discard_alignment in part_discard_alignment_show

2022-04-06 Thread Christoph Hellwig
Use the bdev based alignment helper instead of open coding it. Signed-off-by: Christoph Hellwig --- block/partitions/core.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/block/partitions/core.c b/block/partitions/core.c index 240b3fff521e4..70dec1c78521d 100644 ---

[Cluster-devel] [PATCH 27/27] direct-io: remove random prefetches

2022-04-06 Thread Christoph Hellwig
Randomly poking into block device internals for manual prefetches isn't exactly a very maintainable thing to do. And none of the performance criticil direct I/O implementations still use this library function anyway, so just drop it. Signed-off-by: Christoph Hellwig --- fs/direct-io.c | 32

[Cluster-devel] [PATCH 19/27] block: remove queue_discard_alignment

2022-04-06 Thread Christoph Hellwig
Just use bdev_alignment_offset in disk_discard_alignment_show instead. That helpers is the same except for an always false branch that doesn't matter in this slow path. Signed-off-by: Christoph Hellwig --- block/genhd.c | 2 +- include/linux/blkdev.h | 8 2 files changed, 1

[Cluster-devel] [PATCH 07/27] btrfs: use bdev_max_active_zones instead of open coding it

2022-04-06 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- fs/btrfs/zoned.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/btrfs/zoned.c b/fs/btrfs/zoned.c index b7b5fac1c7790..5b85004d85d6c 100644 --- a/fs/btrfs/zoned.c +++ b/fs/btrfs/zoned.c @@ -350,7 +350,6 @@ int

[Cluster-devel] [PATCH 15/27] block: use bdev_alignment_offset in part_alignment_offset_show

2022-04-06 Thread Christoph Hellwig
Replace the open coded offset calculation with the proper helper. This is an ABI change in that the -1 for a misaligned partition is properly propagated, which can be considered a bug fix and maches what is done on the whole device. Signed-off-by: Christoph Hellwig --- block/partitions/core.c |

[Cluster-devel] [PATCH 03/27] target: fix discard alignment on partitions

2022-04-06 Thread Christoph Hellwig
Use the proper bdev_discard_alignment helper that accounts for partition offsets. Fіxes: c66ac9db8d4a ("[SCSI] target: Add LIO target core v4.0.0-rc6") Signed-off-by: Christoph Hellwig --- drivers/target/target_core_device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[Cluster-devel] use block_device based APIs in block layer consumers

2022-04-06 Thread Christoph Hellwig
Hi Jens, this series cleanups up the block layer API so that APIs consumed by file systems are (almost) only struct block_devic based, so that file systems don't have to poke into block layer internals like the request_queue. I also found a bunch of existing bugs related to partition offsets and

[Cluster-devel] [PATCH 02/27] target: pass a block_device to target_configure_unmap_from_queue

2022-04-06 Thread Christoph Hellwig
The target code is a consumer of the block layer and should generally work on struct block_device. Signed-off-by: Christoph Hellwig --- drivers/target/target_core_device.c | 5 +++-- drivers/target/target_core_file.c| 7 --- drivers/target/target_core_iblock.c | 2 +-

[Cluster-devel] [PATCH 06/27] drbd: cleanup decide_on_discard_support

2022-04-06 Thread Christoph Hellwig
Sanitize the calling conventions and use a goto label to cleanup the code flow. Signed-off-by: Christoph Hellwig --- drivers/block/drbd/drbd_nl.c | 68 +++- 1 file changed, 35 insertions(+), 33 deletions(-) diff --git a/drivers/block/drbd/drbd_nl.c

[Cluster-devel] [PATCH 01/27] target: remove an incorrect unmap zeroes data deduction

2022-04-06 Thread Christoph Hellwig
For block devices the target code implements UNMAP as calls to blkdev_issue_discard, which does not guarantee zeroing just because Write Zeroes is supported. Note that this does not affect the file backed path which uses fallocate to punch holes. Fixes: 2237498f0b5c ("target/iblock: Convert

[Cluster-devel] [PATCH 09/27] mm: use bdev_is_zoned in claim_swapfile

2022-04-06 Thread Christoph Hellwig
Use the bdev based helper instead of poking into the queue. Signed-off-by: Christoph Hellwig --- mm/swapfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/swapfile.c b/mm/swapfile.c index 63c61f8b26118..4c7537162af5e 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c @@

[Cluster-devel] [PATCH 21/27] block: move {bdev, queue_limit}_discard_alignment out of line

2022-04-06 Thread Christoph Hellwig
No need to inline these fairly larger helpers. Also fix the return value to be unsigned, just like the field in struct queue_limits. Signed-off-by: Christoph Hellwig --- block/blk-settings.c | 35 +++ include/linux/blkdev.h | 34

[Cluster-devel] [PATCH 18/27] block: move bdev_alignment_offset and queue_limit_alignment_offset out of line

2022-04-06 Thread Christoph Hellwig
No need to inline these fairly larger helpers. Signed-off-by: Christoph Hellwig --- block/blk-settings.c | 23 +++ include/linux/blkdev.h | 21 + 2 files changed, 24 insertions(+), 20 deletions(-) diff --git a/block/blk-settings.c

[Cluster-devel] [PATCH 04/27] drbd: remove assign_p_sizes_qlim

2022-04-06 Thread Christoph Hellwig
Fold each branch into its only caller. Signed-off-by: Christoph Hellwig --- drivers/block/drbd/drbd_main.c | 50 -- 1 file changed, 23 insertions(+), 27 deletions(-) diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c index

[Cluster-devel] [PATCH 08/27] ntfs3: use bdev_logical_block_size instead of open coding it

2022-04-06 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig --- fs/ntfs3/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ntfs3/super.c b/fs/ntfs3/super.c index 278dcf5024102..cd30e81abbce0 100644 --- a/fs/ntfs3/super.c +++ b/fs/ntfs3/super.c @@ -920,7 +920,7 @@ static int

[Cluster-devel] [PATCH 11/27] block: add a bdev_write_cache helper

2022-04-06 Thread Christoph Hellwig
Add a helper to check the write cache flag based on the block_device instead of having to poke into the block layer internal request_queue. Signed-off-by: Christoph Hellwig --- drivers/block/rnbd/rnbd-srv.c | 2 +- drivers/block/xen-blkback/xenbus.c | 2 +-

[Cluster-devel] [PATCH 12/27] block: add a bdev_fua helper

2022-04-06 Thread Christoph Hellwig
Add a helper to check the FUA flag based on the block_device instead of having to poke into the block layer internal request_queue. Signed-off-by: Christoph Hellwig --- drivers/block/rnbd/rnbd-srv.c | 3 +-- drivers/target/target_core_iblock.c | 3 +-- fs/iomap/direct-io.c

[Cluster-devel] [PATCH 13/27] block: add a bdev_stable_writes helper

2022-04-06 Thread Christoph Hellwig
Add a helper to check the stable writes flag based on the block_device instead of having to poke into the block layer internal request_queue. Signed-off-by: Christoph Hellwig --- drivers/md/dm-table.c | 4 +--- fs/super.c | 2 +- include/linux/blkdev.h | 6 ++ mm/swapfile.c

[Cluster-devel] [PATCH 10/27] block: add a bdev_nonrot helper

2022-04-06 Thread Christoph Hellwig
Add a helper to check the nonrot flag based on the block_device instead of having to poke into the block layer internal request_queue. Signed-off-by: Christoph Hellwig --- block/ioctl.c | 2 +- drivers/block/loop.c| 2 +- drivers/md/dm-table.c

[Cluster-devel] [PATCH 05/27] drbd: use bdev based limit helpers in drbd_send_sizes

2022-04-06 Thread Christoph Hellwig
Use the bdev based limits helpers where they exist. Signed-off-by: Christoph Hellwig --- drivers/block/drbd/drbd_main.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c index

Re: [Cluster-devel] [PATCH 14/27] block: add a bdev_max_zone_append_sectors helper

2022-04-06 Thread Johannes Thumshirn
Looks good, Reviewed-by: Johannes Thumshirn

[Cluster-devel] [PATCH] gfs2: Mark flock glock holders as GL_NOPID

2022-04-06 Thread Andreas Gruenbacher
Add the GL_NOPID flag for flock glock holders. Clean up the flag setting code in do_flock. In add_to_queue(), since flock glock holders now always have the GL_NOPID flag set, there is no need to separately check for those types of locks anymore. Signed-off-by: Andreas Gruenbacher ---

[Cluster-devel] [PATCH] gfs2: Replace list_prepare_entry() with list_entry()

2022-04-06 Thread Andreas Gruenbacher
In gfs2_before_commit(), use list_entry() instead of list_prepare_entry() for letting the iterator variables point at the list head. Signed-off-by: Andreas Gruenbacher --- fs/gfs2/lops.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/gfs2/lops.c b/fs/gfs2/lops.c

[Cluster-devel] [PATCH] gfs2: Mark the remaining process-independent glock holders as GL_NOPID

2022-04-06 Thread Andreas Gruenbacher
Add the GL_NOPID flag for the remaining glock holders which are not associated with the current process. Signed-off-by: Andreas Gruenbacher --- fs/gfs2/inode.c | 7 +-- fs/gfs2/ops_fstype.c | 14 -- fs/gfs2/super.c | 3 ++- fs/gfs2/util.c | 5 +++-- 4 files

Re: [Cluster-devel] [PATCH 23/27] block: add a bdev_max_discard_sectors helper

2022-04-06 Thread Andreas Gruenbacher
On Wed, Apr 6, 2022 at 8:07 AM Christoph Hellwig wrote: > > Add a helper to query the number of sectors support per each discard bio > based on the block device and use this helper to stop various places from > poking into the request_queue to see if discard is supported and if so how > much.

[Cluster-devel] [PATCH] gfs2: Add GL_NOPID flag for process-independent glock holders

2022-04-06 Thread Andreas Gruenbacher
Add a GL_NOPID flag to indicate that a holder isn't associated with the current process. This is useful for iopen glocks which are associated with open files, as well as journal glock holders and similar which are associated with the filesystem. When the GL_NOPID flag is set, the pid and process

[Cluster-devel] [PATCH dlm/next 2/2] fs: dlm: fix pending remove if msg allocation fails

2022-04-06 Thread Alexander Aring
This patch unsets ls_remove_len and ls_remove_name if a message allocation of a remove messages fails. In this case we never send a remove message out but set the per ls ls_remove_len ls_remove_name variable for a pending remove. Unset those variable should indicate possible waiters in

[Cluster-devel] [PATCH dlm/next 1/2] fs: dlm: fix wake_up() calls for pending remove

2022-04-06 Thread Alexander Aring
This patch move the wake_up() call at the point when a remove message completed. Before it was only when a remove message was going to be sent. The possible waiter in wait_pending_remove() waits until a remove is done if the resource name matches with the per ls variable ls->ls_remove_name. If

[Cluster-devel] [PATCH RESEND dlm/next 1/2] dlm: remove usage of list iterator for list_add() after the loop body

2022-04-06 Thread Alexander Aring
binDrWrWim0Ob.bin Description: Binary data

[Cluster-devel] [PATCH RESEND dlm/next 0/2] dlm: resend list iterator patches

2022-04-06 Thread Alexander Aring
Hi, this is a resend of Jakob Koschels list iterator patches rebased on current pending dlm patches. We had a lot of change in the plock handling of dlm. *little change that lkb is named "big_lkb" to remain the "big lock" information in variable name of function recover_lvb(). Otherwise it

[Cluster-devel] [PATCH RESEND dlm/next 2/2] dlm: replace usage of found with dedicated list iterator variable

2022-04-06 Thread Alexander Aring
binateKOcVhsJ.bin Description: Binary data

[Cluster-devel] [PATCH AUTOSEL 5.16 02/30] gfs2: cancel timed-out glock requests

2022-04-06 Thread Sasha Levin
binUcNTX2FULf.bin Description: Binary data

[Cluster-devel] [PATCH AUTOSEL 5.16 03/30] gfs2: Switch lock order of inode and iopen glock

2022-04-06 Thread Sasha Levin
binfJUed6s3zg.bin Description: Binary data

[Cluster-devel] [PATCH AUTOSEL 5.16 12/30] gfs2: Disable page faults during lockless buffered reads

2022-04-06 Thread Sasha Levin
bin3dBQMp5VYf.bin Description: Binary data

[Cluster-devel] [PATCH AUTOSEL 5.15 01/27] gfs2: assign rgrp glock before compute_bitstructs

2022-04-06 Thread Sasha Levin
binnqaImnDe2y.bin Description: Binary data

[Cluster-devel] [PATCH AUTOSEL 5.16 01/30] gfs2: assign rgrp glock before compute_bitstructs

2022-04-06 Thread Sasha Levin
binGyRuRd661N.bin Description: Binary data

[Cluster-devel] [PATCH AUTOSEL 5.15 09/27] gfs2: Disable page faults during lockless buffered reads

2022-04-06 Thread Sasha Levin
binsmMdxIT04t.bin Description: Binary data

[Cluster-devel] [PATCH AUTOSEL 5.4 01/17] gfs2: assign rgrp glock before compute_bitstructs

2022-04-06 Thread Sasha Levin
binF5G9FdBpNR.bin Description: Binary data

[Cluster-devel] [PATCH AUTOSEL 5.10 09/25] gfs2: Disable page faults during lockless buffered reads

2022-04-06 Thread Sasha Levin
binimcF0Q76lO.bin Description: Binary data

[Cluster-devel] [PATCH AUTOSEL 5.10 01/25] gfs2: assign rgrp glock before compute_bitstructs

2022-04-06 Thread Sasha Levin
bin0fHp90zR_b.bin Description: Binary data

[Cluster-devel] [PATCH AUTOSEL 4.14 1/8] gfs2: assign rgrp glock before compute_bitstructs

2022-04-06 Thread Sasha Levin
binWz8X8BV6fo.bin Description: Binary data

[Cluster-devel] [PATCH AUTOSEL 5.17 01/31] gfs2: assign rgrp glock before compute_bitstructs

2022-04-06 Thread Sasha Levin
bineCJNhU7lgH.bin Description: Binary data

[Cluster-devel] [PATCH AUTOSEL 5.17 03/31] gfs2: Switch lock order of inode and iopen glock

2022-04-06 Thread Sasha Levin
binnHZTpX67RY.bin Description: Binary data

[Cluster-devel] [PATCH AUTOSEL 4.19 01/11] gfs2: assign rgrp glock before compute_bitstructs

2022-04-06 Thread Sasha Levin
binS7sQtwPKHH.bin Description: Binary data

[Cluster-devel] [PATCH AUTOSEL 5.17 02/31] gfs2: cancel timed-out glock requests

2022-04-06 Thread Sasha Levin
binZfq0jKww0o.bin Description: Binary data

[Cluster-devel] [PATCH AUTOSEL 4.9 1/7] gfs2: assign rgrp glock before compute_bitstructs

2022-04-06 Thread Sasha Levin
bin8jrUzzFlWb.bin Description: Binary data

[Cluster-devel] [PATCH AUTOSEL 5.17 12/31] gfs2: Disable page faults during lockless buffered reads

2022-04-06 Thread Sasha Levin
binHsbO9EyDYd.bin Description: Binary data

Re: [Cluster-devel] [dm-devel] [PATCH 14/27] block: add a bdev_max_zone_append_sectors helper

2022-04-06 Thread Martin K. Petersen
Christoph, > Add a helper to check the max supported sectors for zone append based > on the block_device instead of having to poke into the block layer > internal request_queue. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [Cluster-devel] [Ocfs2-devel] [PATCH 11/27] block: add a bdev_write_cache helper

2022-04-06 Thread Martin K. Petersen
Christoph, > Add a helper to check the write cache flag based on the block_device > instead of having to poke into the block layer internal request_queue. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [Cluster-devel] [Ocfs2-devel] [PATCH 13/27] block: add a bdev_stable_writes helper

2022-04-06 Thread Martin K. Petersen
Christoph, > Add a helper to check the stable writes flag based on the block_device > instead of having to poke into the block layer internal request_queue. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [Cluster-devel] [dm-devel] [PATCH 03/27] target: fix discard alignment on partitions

2022-04-06 Thread Martin K. Petersen
Christoph, > Use the proper bdev_discard_alignment helper that accounts for partition > offsets. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [Cluster-devel] [Ocfs2-devel] [PATCH 20/27] block: use bdev_discard_alignment in part_discard_alignment_show

2022-04-06 Thread Martin K. Petersen
Christoph, > Use the bdev based alignment helper instead of open coding it. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [Cluster-devel] [Ocfs2-devel] [PATCH 19/27] block: remove queue_discard_alignment

2022-04-06 Thread Martin K. Petersen
Christoph, > Just use bdev_alignment_offset in disk_discard_alignment_show instead. > That helpers is the same except for an always false branch that > doesn't matter in this slow path. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [Cluster-devel] [Ocfs2-devel] [PATCH 24/27] block: add a bdev_discard_granularity helper

2022-04-06 Thread Martin K. Petersen
Christoph, > Abstract away implementation details from file systems by providing a > block_device based helper to retreive the discard granularity. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [Cluster-devel] [Ocfs2-devel] [PATCH 23/27] block: add a bdev_max_discard_sectors helper

2022-04-06 Thread Martin K. Petersen
Christoph, > Add a helper to query the number of sectors support per each discard > bio based on the block device and use this helper to stop various > places from poking into the request_queue to see if discard is > supported and if so how much. This mirrors what is done e.g. for > write

Re: [Cluster-devel] [dm-devel] [PATCH 01/27] target: remove an incorrect unmap zeroes data deduction

2022-04-06 Thread Martin K. Petersen
Christoph, > For block devices the target code implements UNMAP as calls to > blkdev_issue_discard, which does not guarantee zeroing just because > Write Zeroes is supported. > > Note that this does not affect the file backed path which uses > fallocate to punch holes. Reviewed-by: Martin K.

Re: [Cluster-devel] [PATCH 02/27] target: pass a block_device to target_configure_unmap_from_queue

2022-04-06 Thread Martin K. Petersen
Christoph, > The target code is a consumer of the block layer and should generally > work on struct block_device. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [Cluster-devel] [Ocfs2-devel] [PATCH 12/27] block: add a bdev_fua helper

2022-04-06 Thread Martin K. Petersen
Christoph, > Add a helper to check the FUA flag based on the block_device instead > of having to poke into the block layer internal request_queue. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [Cluster-devel] [Ocfs2-devel] [PATCH 10/27] block: add a bdev_nonrot helper

2022-04-06 Thread Martin K. Petersen
Christoph, > Add a helper to check the nonrot flag based on the block_device > instead of having to poke into the block layer internal request_queue. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [Cluster-devel] [Ocfs2-devel] [PATCH 15/27] block: use bdev_alignment_offset in part_alignment_offset_show

2022-04-06 Thread Martin K. Petersen
Christoph, > Replace the open coded offset calculation with the proper helper. > This is an ABI change in that the -1 for a misaligned partition is > properly propagated, which can be considered a bug fix and maches what > is done on the whole device. Looks good. Reviewed-by: Martin K.

Re: [Cluster-devel] [Ocfs2-devel] [PATCH 17/27] block: use bdev_alignment_offset in disk_alignment_offset_show

2022-04-06 Thread Martin K. Petersen
Christoph, > This does the same as the open coded variant except for an extra > branch, and allows to remove queue_alignment_offset entirely. Also fine. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [Cluster-devel] [Ocfs2-devel] [PATCH 18/27] block: move bdev_alignment_offset and queue_limit_alignment_offset out of line

2022-04-06 Thread Martin K. Petersen
Christoph, > No need to inline these fairly larger helpers. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [Cluster-devel] [Ocfs2-devel] [PATCH 21/27] block: move {bdev, queue_limit}_discard_alignment out of line

2022-04-06 Thread Martin K. Petersen
Christoph, > No need to inline these fairly larger helpers. Also fix the return > value to be unsigned, just like the field in struct queue_limits. I believe the original reason for the signed int here was to be able to express -1 for sysfs. I am not sure why I didn't just use the misaligned

Re: [Cluster-devel] [Ocfs2-devel] [PATCH 22/27] block: refactor discard bio size limiting

2022-04-06 Thread Martin K. Petersen
Christoph, > Move all the logic to limit the discard bio size into a common helper > so that it is better documented. Looks OK. Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

Re: [Cluster-devel] [Ocfs2-devel] [PATCH 25/27] block: remove QUEUE_FLAG_DISCARD

2022-04-06 Thread Martin K. Petersen
Christoph, > Just use a non-zero max_discard_sectors as an indicator for discard > support, similar to what is done for write zeroes. Very happy to finally see this flag removed! Reviewed-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering

[Cluster-devel] [teigland-dlm:next 13/23] include/uapi/linux/byteorder/little_endian.h:32:43: warning: cast from pointer to integer of different size

2022-04-06 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/teigland/linux-dlm.git next head: dc1acd5c94699389a9ed023e94dd860c846ea1f6 commit: 2f9dbeda8dc04b5b754e032000adf6bab03aa9be [13/23] dlm: use __le types for rcom messages config: microblaze-randconfig-r024-20220406 (https://download.01

Re: [Cluster-devel] [dm-devel] [PATCH 01/27] target: remove an incorrect unmap zeroes data deduction

2022-04-06 Thread Martin K. Petersen
Christoph, > For block devices the target code implements UNMAP as calls to > blkdev_issue_discard, which does not guarantee zeroing just because > Write Zeroes is supported. > > Note that this does not affect the file backed path which uses > fallocate to punch holes. > > Fixes: 2237498f0b5c

Re: [Cluster-devel] [PATCH 25/27] block: remove QUEUE_FLAG_DISCARD

2022-04-06 Thread Coly Li
On 4/6/22 2:05 PM, Christoph Hellwig wrote: Just use a non-zero max_discard_sectors as an indicator for discard support, similar to what is done for write zeroes. The only places where needs special attention is the RAID5 driver, which must clear discard support for security reasons by default,

Re: [Cluster-devel] [PATCH 23/27] block: add a bdev_max_discard_sectors helper

2022-04-06 Thread Coly Li
On 4/6/22 2:05 PM, Christoph Hellwig wrote: Add a helper to query the number of sectors support per each discard bio based on the block device and use this helper to stop various places from poking into the request_queue to see if discard is supported and if so how much. This mirrors what is