Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 209170
b: refs/heads/master
c: 38e1b25
h: refs/heads/master
v: v3
  • Loading branch information
Mike Snitzer authored and Alasdair G Kergon committed Aug 12, 2010
1 parent 20692f9 commit 03eb749
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3fd5d48027181168ce85e8094b926aeb9f34c556
refs/heads/master: 38e1b257fd7b4f3eee667d29a5e44ec15e253c1c
5 changes: 5 additions & 0 deletions trunk/drivers/md/dm-target.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 03eb749

Please sign in to comment.