diff options
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm-target.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/md/dm-target.c b/drivers/md/dm-target.c index 11dea11dc0b6..8da366cf381c 100644 --- a/drivers/md/dm-target.c +++ b/drivers/md/dm-target.c | |||
@@ -113,6 +113,11 @@ void dm_unregister_target(struct target_type *tt) | |||
113 | */ | 113 | */ |
114 | static int io_err_ctr(struct dm_target *tt, unsigned int argc, char **args) | 114 | static int io_err_ctr(struct dm_target *tt, unsigned int argc, char **args) |
115 | { | 115 | { |
116 | /* | ||
117 | * Return error for discards instead of -EOPNOTSUPP | ||
118 | */ | ||
119 | tt->num_discard_requests = 1; | ||
120 | |||
116 | return 0; | 121 | return 0; |
117 | } | 122 | } |
118 | 123 | ||