Remove 'discards_supported' from the dm_table structure. The same
information can be easily discovered from the table's target(s) in
This change fixes an issue with per-target 'discards_supported' being
ineffective, at insuring the final DM device advertises discard support,
due to a different target not having 'num_discard_requests' > 0 -- this
resulted in the overall table's 'discards_supported' being set to 0.
Also DMWARN if a target sets 'discards_supported' override but forgets
to set 'num_discard_requests'.
dm-devel mailing list