diff options
Diffstat (limited to 'drivers/md/dm-table.c')
-rw-r--r-- | drivers/md/dm-table.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c index 2e227fbf1622..f90069029aae 100644 --- a/drivers/md/dm-table.c +++ b/drivers/md/dm-table.c | |||
@@ -1319,6 +1319,9 @@ static bool dm_table_supports_flush(struct dm_table *t, unsigned flush) | |||
1319 | if (!ti->num_flush_requests) | 1319 | if (!ti->num_flush_requests) |
1320 | continue; | 1320 | continue; |
1321 | 1321 | ||
1322 | if (ti->flush_supported) | ||
1323 | return 1; | ||
1324 | |||
1322 | if (ti->type->iterate_devices && | 1325 | if (ti->type->iterate_devices && |
1323 | ti->type->iterate_devices(ti, device_flush_capable, &flush)) | 1326 | ti->type->iterate_devices(ti, device_flush_capable, &flush)) |
1324 | return 1; | 1327 | return 1; |