Searched hist:e6fc9f62ce6e412acb1699a5373174aa42ca2bd3 (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/md/ |
H A D | dm-core.h | diff e6fc9f62ce6e412acb1699a5373174aa42ca2bd3 Thu Feb 17 22:40:30 CST 2022 Mike Snitzer <snitzer@redhat.com> dm: flag clones created by __send_duplicate_bios
Formally disallow dm_accept_partial_bio() on clones created by __send_duplicate_bios() because their len_ptr points to a shared unsigned int. __send_duplicate_bios() is only used for flush bios and other "abnormal" bios (discards, writezeroes, etc). And dm_accept_partial_bio() already didn't support flush bios.
Also refactor __send_changing_extent_only() to reflect it cannot fail. As such __send_changing_extent_only() can update the clone_info before __send_duplicate_bios() is called to fan-out __map_bio() calls.
Reviewed-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
|
H A D | dm.c | diff e6fc9f62ce6e412acb1699a5373174aa42ca2bd3 Thu Feb 17 22:40:30 CST 2022 Mike Snitzer <snitzer@redhat.com> dm: flag clones created by __send_duplicate_bios
Formally disallow dm_accept_partial_bio() on clones created by __send_duplicate_bios() because their len_ptr points to a shared unsigned int. __send_duplicate_bios() is only used for flush bios and other "abnormal" bios (discards, writezeroes, etc). And dm_accept_partial_bio() already didn't support flush bios.
Also refactor __send_changing_extent_only() to reflect it cannot fail. As such __send_changing_extent_only() can update the clone_info before __send_duplicate_bios() is called to fan-out __map_bio() calls.
Reviewed-by: Mikulas Patocka <mpatocka@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
|