]> git.dujemihanovic.xyz Git - linux.git/commit
dm table: allow targets without devices to set ->io_hints
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 4 Apr 2023 15:14:26 +0000 (11:14 -0400)
committerMike Snitzer <snitzer@kernel.org>
Tue, 4 Apr 2023 17:30:17 +0000 (13:30 -0400)
commit85c938e8914f8f0e276b8e82d4f2e4bcab044e96
treeb136252fc9a78356eb548cdb402e947d1591964d
parent074c44664f60f62ef932eae9ee89d663563cf307
dm table: allow targets without devices to set ->io_hints

In dm_calculate_queue_limits, add call to ->io_hints hook if the
target doesn't provide ->iterate_devices.

This is needed so the "error" and "zero" targets may support
discards. The 2 following commits will add their respective discard
support.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Tested-by: Milan Broz <gmazyland@gmail.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm-table.c