On 01/20/2014 12:59 PM, Junichi Nomura wrote: > On 01/17/14 19:42, Hannes Reinecke wrote: >> @@ -908,19 +910,9 @@ static void multipath_dtr(struct dm_target *ti) >> static int multipath_map(struct dm_target *ti, struct request *clone, >> union map_info *map_context) >> { >> - int r; >> struct multipath *m = (struct multipath *) ti->private; >> >> - if (set_mapinfo(m, map_context) < 0) >> - /* ENOMEM, requeue */ >> - return DM_MAPIO_REQUEUE; >> - >> - clone->cmd_flags |= REQ_FAILFAST_TRANSPORT; >> - r = map_io(m, clone, map_context); >> - if (r < 0 || r == DM_MAPIO_REQUEUE) >> - clear_mapinfo(m, map_context); >> - >> - return r; >> + return map_io(m, clone, map_context); >> } > > Now multipath_map() is the only caller of map_io() and > most part of multipath_map() is moved to map_io(), > there is no reason to separate those functions. > You could fold map_io() into multipath_map(). > Yes, I could. However, I didn't do so (for this patchset) as this would make reviewing harder. But yeah, it should be merged. Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage hare@xxxxxxx +49 911 74053 688 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg) -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel