Loading drivers/md/dm-rq.c +5 −7 Original line number Diff line number Diff line Loading @@ -504,16 +504,14 @@ static int map_request(struct dm_rq_target_io *tio) /* The target wants to requeue the I/O after a delay */ dm_requeue_original_request(tio, true); break; case DM_MAPIO_KILL: /* The target wants to complete the I/O */ dm_kill_unmapped_request(rq, -EIO); default: if (r > 0) { DMWARN("unimplemented target map return value: %d", r); BUG(); } /* The target wants to complete the I/O */ dm_kill_unmapped_request(rq, r); } return r; } Loading drivers/md/dm-target.c +1 −1 Original line number Diff line number Diff line Loading @@ -135,7 +135,7 @@ static int io_err_clone_and_map_rq(struct dm_target *ti, struct request *rq, union map_info *map_context, struct request **clone) { return -EIO; return DM_MAPIO_KILL; } static void io_err_release_clone_rq(struct request *clone) Loading include/linux/device-mapper.h +1 −0 Original line number Diff line number Diff line Loading @@ -604,6 +604,7 @@ extern struct ratelimit_state dm_ratelimit_state; #define DM_MAPIO_REMAPPED 1 #define DM_MAPIO_REQUEUE DM_ENDIO_REQUEUE #define DM_MAPIO_DELAY_REQUEUE 3 #define DM_MAPIO_KILL 4 #define dm_sector_div64(x, y)( \ { \ Loading Loading
drivers/md/dm-rq.c +5 −7 Original line number Diff line number Diff line Loading @@ -504,16 +504,14 @@ static int map_request(struct dm_rq_target_io *tio) /* The target wants to requeue the I/O after a delay */ dm_requeue_original_request(tio, true); break; case DM_MAPIO_KILL: /* The target wants to complete the I/O */ dm_kill_unmapped_request(rq, -EIO); default: if (r > 0) { DMWARN("unimplemented target map return value: %d", r); BUG(); } /* The target wants to complete the I/O */ dm_kill_unmapped_request(rq, r); } return r; } Loading
drivers/md/dm-target.c +1 −1 Original line number Diff line number Diff line Loading @@ -135,7 +135,7 @@ static int io_err_clone_and_map_rq(struct dm_target *ti, struct request *rq, union map_info *map_context, struct request **clone) { return -EIO; return DM_MAPIO_KILL; } static void io_err_release_clone_rq(struct request *clone) Loading
include/linux/device-mapper.h +1 −0 Original line number Diff line number Diff line Loading @@ -604,6 +604,7 @@ extern struct ratelimit_state dm_ratelimit_state; #define DM_MAPIO_REMAPPED 1 #define DM_MAPIO_REQUEUE DM_ENDIO_REQUEUE #define DM_MAPIO_DELAY_REQUEUE 3 #define DM_MAPIO_KILL 4 #define dm_sector_div64(x, y)( \ { \ Loading