diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-12 10:16:46 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-12 10:16:46 -0700 |
commit | 8357422d4bf33bc2c35884d4016c3fc9efbbc1d2 (patch) | |
tree | 5779dfe36de828d3ef2dacfda48b7961cdc44525 /drivers/md/dm-target.c | |
parent | 1021a645344d4a77333e19e60d37b9343be0d7b7 (diff) | |
parent | 959eb4e5592cc0b0b07db0ca30d2b1efd790020f (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/agk/linux-2.6-dm
* git://git.kernel.org/pub/scm/linux/kernel/git/agk/linux-2.6-dm: (33 commits)
dm mpath: support discard
dm stripe: support discards
dm: split discard requests on target boundaries
dm stripe: optimize sector division
dm stripe: move sector translation to a function
dm: error return error for discards
dm delay: support discard
dm: zero silently drop discards
dm: use dm_target_offset macro
dm: factor out max_io_len_target_boundary
dm: use common __issue_target_request for flush and discard support
dm: linear support discard
dm crypt: simplify crypt_ctr
dm crypt: simplify crypt_config destruction logic
dm: allow autoloading of dm mod
dm: rename map_info flush_request to target_request_nr
dm ioctl: refactor dm_table_complete
dm snapshot: implement merge
dm: do not initialise full request queue when bio based
dm ioctl: make bio or request based device type immutable
...
Diffstat (limited to 'drivers/md/dm-target.c')
-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 11dea11dc0b..8da366cf381 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) */ static int io_err_ctr(struct dm_target *tt, unsigned int argc, char **args) { + /* + * Return error for discards instead of -EOPNOTSUPP + */ + tt->num_discard_requests = 1; + return 0; } |