[dm-devel] [PATCH v2] dm: Call proper helper to determine dax support

2020-09-17 Thread Dan Williams
From: Jan Kara DM was calling generic_fsdax_supported() to determine whether a device referenced in the DM table supports DAX. However this is a helper for "leaf" device drivers so that they don't have to duplicate common generic checks. High level code should call dax_supported() helper which t

Re: [dm-devel] [PATCH 0/6] libmultipath: check udev* func return value

2020-09-17 Thread Benjamin Marzinski
On Tue, Sep 15, 2020 at 12:38:27PM +0800, lixiaokeng wrote: > Hi, > The udev* function may return NULL,and it will be > dereferenced in str* and sscanf func. For example, > there is a coredump caused in add func, which show in > be7a043(commit id) in upstream-queue. We check the > return value to

[dm-devel] [PATCH AUTOSEL 5.4 026/330] dm table: do not allow request-based DM to stack on partitions

2020-09-17 Thread Sasha Levin
From: Mike Snitzer [ Upstream commit 6ba01df72b4b63a26b4977790f58d8f775d2992c ] Partitioned request-based devices cannot be used as underlying devices for request-based DM because no partition offsets are added to each incoming request. As such, until now, stacking on partitioned devices would

Re: [dm-devel] [PATCH 1/3] multipath: add libmpathvalid library

2020-09-17 Thread Benjamin Marzinski
On Wed, Sep 16, 2020 at 02:18:49PM +, Martin Wilck wrote: > On Tue, 2020-09-15 at 16:45 -0500, Benjamin Marzinski wrote: > > This library allows other programs to check if a path should be > > claimed > > by multipath. It exports an init and exit function, a pointer to a > > struct config, that

Re: [dm-devel] [PATCH 3/3] libmultipath: add ignore_udev_uid option

2020-09-17 Thread Benjamin Marzinski
On Wed, Sep 16, 2020 at 02:46:18PM +, Martin Wilck wrote: > Hi Ben, > > On Tue, 2020-09-15 at 16:45 -0500, Benjamin Marzinski wrote: > > Setting this option to yes will force multipath to get the uid by > > using > > the fallback sysfs methods, instead of getting it from udev. This > > will >

[dm-devel] [PATCH] dm thin metadata: Remove unused local variable when create thin and snap

2020-09-17 Thread Huaisheng Ye
From: Huaisheng Ye The local variable disk details is not used during the creating of thin & snap devices. Remove them from dm-thin-metadata, and add pointer validity check for pointer value in btree_lookup_raw. Skip memory copy when the caller doesn't need the value. Signed-off-by: Huaisheng Ye

Re: [dm-devel] [PATCH 06/12] block: lift setting the readahead size into the block layer

2020-09-17 Thread Jan Kara
On Thu 10-09-20 16:48:26, Christoph Hellwig wrote: > Drivers shouldn't really mess with the readahead size, as that is a VM > concept. Instead set it based on the optimal I/O size by lifting the > algorithm from the md driver when registering the disk. Also set > bdi->io_pages there as well by ap

Re: [dm-devel] [PATCH 04/12] bdi: initialize ->ra_pages and ->io_pages in bdi_init

2020-09-17 Thread Jan Kara
On Thu 10-09-20 16:48:24, Christoph Hellwig wrote: > Set up a readahead size by default, as very few users have a good > reason to change it. > > Signed-off-by: Christoph Hellwig > Acked-by: David Sterba [btrfs] > Acked-by: Richard Weinberger [ubifs, mtd] Looks good but what about coda, ecrypt

Re: [dm-devel] [PATCH 03/12] drbd: remove RB_CONGESTED_REMOTE

2020-09-17 Thread Jan Kara
On Thu 10-09-20 16:48:23, Christoph Hellwig wrote: > This case isn't ever used. > > Signed-off-by: Christoph Hellwig > Reviewed-by: Johannes Thumshirn Are you sure it's never used? As far as I'm reading drdb code the contents of the disk_conf structure seems to be received through netlink (that

Re: [dm-devel] [PATCH 02/12] drbd: remove dead code in device_to_statistics

2020-09-17 Thread Jan Kara
On Thu 10-09-20 16:48:22, Christoph Hellwig wrote: > Ever since the switch to blk-mq, a lower device not used for VM > writeback will not be marked congested, so the check will never > trigger. > > Signed-off-by: Christoph Hellwig Looks good to me. You can add: Reviewed-by: Jan Kara

Re: [dm-devel] [PATCH 01/12] fs: remove the unused SB_I_MULTIROOT flag

2020-09-17 Thread Jan Kara
On Thu 10-09-20 16:48:21, Christoph Hellwig wrote: > The last user of SB_I_MULTIROOT is disappeared with commit f2aedb713c28 > ("NFS: Add fs_context support.") > > Signed-off-by: Christoph Hellwig > Reviewed-by: Johannes Thumshirn Nice. You can add: Reviewed-by: Jan Kara

Re: [dm-devel] [PATCH 07/12] bdi: remove BDI_CAP_CGROUP_WRITEBACK

2020-09-17 Thread Jan Kara
On Thu 10-09-20 16:48:27, Christoph Hellwig wrote: > Just checking SB_I_CGROUPWB for cgroup writeback support is enough. > Either the file system allocates its own bdi (e.g. btrfs), in which case > it is known to support cgroup writeback, or the bdi comes from the block > layer, which always suppor

Re: [dm-devel] [PATCH 08/12] bdi: remove BDI_CAP_SYNCHRONOUS_IO

2020-09-17 Thread Jan Kara
On Thu 10-09-20 16:48:28, Christoph Hellwig wrote: > BDI_CAP_SYNCHRONOUS_IO is only checked in the swap code, and used to > decided if ->rw_page can be used on a block device. Just check up for > the method instead. The only complication is that zram needs a second > set of block_device_operation

Re: [dm-devel] [PATCH 12/12] bdi: replace BDI_CAP_NO_{WRITEBACK, ACCT_DIRTY} with a single flag

2020-09-17 Thread Jan Kara
On Thu 10-09-20 16:48:32, Christoph Hellwig wrote: > Replace the two negative flags that are always used together with a > single positive flag that indicates the writeback capability instead > of two related non-capabilities. Also remove the pointless wrappers > to just check the flag. > > Signe

Re: [dm-devel] [PATCH 11/12] bdi: invert BDI_CAP_NO_ACCT_WB

2020-09-17 Thread Jan Kara
On Thu 10-09-20 16:48:31, Christoph Hellwig wrote: > Replace BDI_CAP_NO_ACCT_WB with a positive BDI_CAP_WRITEBACK_ACCT to > make the checks more obvious. Also remove the pointless > bdi_cap_account_writeback wrapper that just obsfucates the check. > > Signed-off-by: Christoph Hellwig The patch

Re: [dm-devel] [PATCH 10/12] bdi: replace BDI_CAP_STABLE_WRITES with a queue and a sb flag

2020-09-17 Thread Jan Kara
On Thu 10-09-20 16:48:30, Christoph Hellwig wrote: > The BDI_CAP_STABLE_WRITES is one of the few bits of information in the > backing_dev_info shared between the block drivers and the writeback code. > To help untangling the dependency replace it with a queue flag and a > superblock flag derived fr

Re: [dm-devel] [PATCH 09/12] mm: use SWP_SYNCHRONOUS_IO more intelligently

2020-09-17 Thread Jan Kara
On Thu 10-09-20 16:48:29, Christoph Hellwig wrote: > There is no point in trying to call bdev_read_page if SWP_SYNCHRONOUS_IO > is not set, as the device won't support it. > > Signed-off-by: Christoph Hellwig Looks good to me. You can add: Reviewed-by: Jan Kara

Re: [dm-devel] Revert "dm: always call blk_queue_split() in dm_process_bio()"

2020-09-17 Thread Vijayendra Suman
Hello Mike, On 9/15/2020 7:03 AM, Mike Snitzer wrote: On Thu, Sep 10 2020 at 3:29pm -0400, Vijayendra Suman wrote: Hello Mike, I checked with upstream, performance measurement is similar and shows performance improvement when 120c9257f5f19e5d1e87efcbb5531b7cd81b7d74 is reverted. On 9/10/20

Re: [dm-devel] [trivial PATCH] treewide: Convert switch/case fallthrough; to break;

2020-09-17 Thread Miquel Raynal
Hi Joe, For MTD: > drivers/mtd/nand/raw/nandsim.c| 2 +- Reviewed-by: Miquel Raynal Thanks, Miquèl -- dm-devel mailing list dm-devel@redhat.com https://www.redhat.com/mailman/listinfo/dm-devel

Re: [dm-devel] [PATCH 07/12] bdi: remove BDI_CAP_CGROUP_WRITEBACK

2020-09-17 Thread David Sterba
On Thu, Sep 10, 2020 at 04:48:27PM +0200, Christoph Hellwig wrote: > Just checking SB_I_CGROUPWB for cgroup writeback support is enough. > Either the file system allocates its own bdi (e.g. btrfs), in which case > it is known to support cgroup writeback, or the bdi comes from the block > layer, whi

Re: [dm-devel] [Intel-gfx] [trivial PATCH] treewide: Convert switch/case fallthrough; to break;

2020-09-17 Thread Jani Nikula
On Wed, 09 Sep 2020, Joe Perches wrote: > diff --git a/drivers/gpu/drm/i915/display/intel_sprite.c > b/drivers/gpu/drm/i915/display/intel_sprite.c > index 5ac0dbf0e03d..35ac539cc2b1 100644 > --- a/drivers/gpu/drm/i915/display/intel_sprite.c > +++ b/drivers/gpu/drm/i915/display/intel_sprite.c > @@