diff options
Diffstat (limited to 'drivers/md/dm-zero.c')
| -rw-r--r-- | drivers/md/dm-zero.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/md/dm-zero.c b/drivers/md/dm-zero.c index bbc97030c0c2..cc2b3cb81946 100644 --- a/drivers/md/dm-zero.c +++ b/drivers/md/dm-zero.c | |||
| @@ -22,6 +22,11 @@ static int zero_ctr(struct dm_target *ti, unsigned int argc, char **argv) | |||
| 22 | return -EINVAL; | 22 | return -EINVAL; |
| 23 | } | 23 | } |
| 24 | 24 | ||
| 25 | /* | ||
| 26 | * Silently drop discards, avoiding -EOPNOTSUPP. | ||
| 27 | */ | ||
| 28 | ti->num_discard_requests = 1; | ||
| 29 | |||
| 25 | return 0; | 30 | return 0; |
| 26 | } | 31 | } |
| 27 | 32 | ||
