Re: [dm-devel] [PATCH] dm: fix iterate_device sanity check

2021-02-04 Thread JeffleXu
Any comment? Thanks, Jeffle On 2/2/21 11:35 AM, Jeffle Xu wrote: > According to the definition of dm_iterate_devices_fn: > * This function must iterate through each section of device used by the > * target until it encounters a non-zero return code, which it then returns. > * Returns zero if

Re: [dm-devel] [PATCH] dm: fix iterate_device sanity check

2021-02-02 Thread JeffleXu
dm_table_supports_dax_write_cache() is remained untouched, since I'm not sure if the semantics requires that 'any underlying device' or 'all underlying devices' supporting dax_write_cache. At least it seems that 'any underlying device' is sufficient from the current code. On 2/2/21 11:35 AM, Jeffl

[dm-devel] [PATCH] dm: fix iterate_device sanity check

2021-02-02 Thread Jeffle Xu
According to the definition of dm_iterate_devices_fn: * This function must iterate through each section of device used by the * target until it encounters a non-zero return code, which it then returns. * Returns zero if no callout returned non-zero. For some target type (e.g., dm-stripe), one c