diff options
author | Christoph Hellwig <hch@lst.de> | 2017-04-26 09:40:37 +0200 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2017-05-01 18:19:03 -0400 |
commit | 7ed8578a96ad98231d8bf6388f776e034673e18a (patch) | |
tree | 91d1d822e1e9c1e04343486df3860b93b9c57836 /include | |
parent | b79f10eefd4bc450a595b93c75e3a9d159ac3885 (diff) |
dm rq: change ->rq_end_io calling conventions
Instead of returning either a DM_ENDIO_* constant or an error code, add
a new DM_ENDIO_DONE value that means keep errno as is. This allows us
to easily keep the existing error code in case where we can't push back,
and it also preparares for the new block level status codes with strict
type checking.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/device-mapper.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h index 925b63cdef52..5a02fc0ff311 100644 --- a/include/linux/device-mapper.h +++ b/include/linux/device-mapper.h @@ -593,6 +593,7 @@ extern struct ratelimit_state dm_ratelimit_state; /* * Definitions of return values from target end_io function. */ +#define DM_ENDIO_DONE 0 #define DM_ENDIO_INCOMPLETE 1 #define DM_ENDIO_REQUEUE 2 |