[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v12 4/7] dm: enable synchronous dax
From: |
Mike Snitzer |
Subject: |
Re: [Qemu-devel] [PATCH v12 4/7] dm: enable synchronous dax |
Date: |
Tue, 11 Jun 2019 13:14:17 -0400 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Tue, Jun 11 2019 at 12:37pm -0400,
Pankaj Gupta <address@hidden> wrote:
> This patch sets dax device 'DAXDEV_SYNC' flag if all the target
> devices of device mapper support synchrononous DAX. If device
> mapper consists of both synchronous and asynchronous dax devices,
> we don't set 'DAXDEV_SYNC' flag.
>
> 'dm_table_supports_dax' is refactored to pass 'iterate_devices_fn'
> as argument so that the callers can pass the appropriate functions.
>
> Suggested-by: Mike Snitzer <address@hidden>
> Signed-off-by: Pankaj Gupta <address@hidden>
Thanks, and for the benefit of others, passing function pointers like
this is perfectly fine IMHO because this code is _not_ in the fast
path. These methods are only for device creation.
Reviewed-by: Mike Snitzer <address@hidden>
- [Qemu-devel] [PATCH v12 0/7] virtio pmem driver, Pankaj Gupta, 2019/06/11
- [Qemu-devel] [PATCH v12 6/7] ext4: disable map_sync for async flush, Pankaj Gupta, 2019/06/11
- [Qemu-devel] [PATCH v12 7/7] xfs: disable map_sync for async flush, Pankaj Gupta, 2019/06/11
- [Qemu-devel] [PATCH v12 5/7] dax: check synchronous mapping is supported, Pankaj Gupta, 2019/06/11
- [Qemu-devel] [PATCH v12 4/7] dm: enable synchronous dax, Pankaj Gupta, 2019/06/11
- Re: [Qemu-devel] [PATCH v12 4/7] dm: enable synchronous dax,
Mike Snitzer <=
- [Qemu-devel] [PATCH v12 3/7] libnvdimm: add dax_dev sync flag, Pankaj Gupta, 2019/06/11
- [Qemu-devel] [PATCH v12 1/7] libnvdimm: nd_region flush callback support, Pankaj Gupta, 2019/06/11
- [Qemu-devel] [PATCH v12 2/7] virtio-pmem: Add virtio pmem driver, Pankaj Gupta, 2019/06/11