On Mon, 7 Feb 2022, Nitesh Shetty wrote: > Before enabling copy for dm target, check if underlaying devices and > dm target support copy. Avoid split happening inside dm target. > Fail early if the request needs split, currently spliting copy > request is not supported > > Signed-off-by: Nitesh Shetty <[email protected]> If a dm device is reconfigured, you must invalidate all the copy tokens that are in flight, otherwise they would copy stale data. I suggest that you create a global variable "atomic64_t dm_changed". In nvme_setup_copy_read you copy this variable to the token. In nvme_setup_copy_write you compare the variable with the value in the token and fail if there is mismatch. In dm.c:__bind you increase the variable, so that all the tokens will be invalidated if a dm table is changed. Mikulas -- dm-devel mailing list [email protected] https://listman.redhat.com/mailman/listinfo/dm-devel
- Re: [dm-devel] [PATCH v2 07/10] nvmet: add copy com... kernel test robot
- Re: [dm-devel] [PATCH v2 07/10] nvmet: add copy com... kernel test robot
- Re: [dm-devel] [PATCH v2 07/10] nvmet: add copy com... Dan Carpenter
- [dm-devel] [PATCH v2 05/10] block: add emulation for cop... Nitesh Shetty
- Re: [dm-devel] [PATCH v2 05/10] block: add emulatio... kernel test robot
- Re: [dm-devel] [PATCH v2 05/10] block: add emulatio... Mikulas Patocka
- Re: [dm-devel] [PATCH v2 05/10] block: add emul... Nitesh Shetty
- [dm-devel] [PATCH v2 06/10] nvme: add copy support Nitesh Shetty
- Re: [dm-devel] [PATCH v2 06/10] nvme: add copy supp... kernel test robot
- [dm-devel] [PATCH v2 08/10] dm: Add support for copy off... Nitesh Shetty
- Re: [dm-devel] [PATCH v2 08/10] dm: Add support for... Mikulas Patocka
- Re: [dm-devel] [PATCH v2 08/10] dm: Add support... Nitesh Shetty
- Re: [dm-devel] [PATCH v2 08/10] dm: Add support... Mikulas Patocka
- [dm-devel] [PATCH v2 01/10] block: make bio_map_kern() n... Nitesh Shetty
- [dm-devel] [PATCH v2 09/10] dm: Enable copy offload for ... Nitesh Shetty
- [dm-devel] [PATCH v2 03/10] block: Add copy offload supp... Nitesh Shetty
- Re: [dm-devel] [PATCH v2 03/10] block: Add copy off... kernel test robot
- Re: [dm-devel] [PATCH v2 03/10] block: Add copy off... kernel test robot
- Re: [dm-devel] [PATCH v2 03/10] block: Add copy off... Dan Carpenter
- Re: [dm-devel] [PATCH v2 03/10] block: Add copy... Nitesh Shetty
- Re: [dm-devel] [PATCH v2 03/10] block: Add copy off... Nitesh Shetty
