]> git.baikalelectronics.ru Git - kernel.git/commit
dm mpath: remove extra nesting in map function
authorMike Snitzer <snitzer@redhat.com>
Fri, 28 Feb 2014 14:33:48 +0000 (15:33 +0100)
committerMike Snitzer <snitzer@redhat.com>
Thu, 27 Mar 2014 20:56:25 +0000 (16:56 -0400)
commit7e22588dc9a2d335f396eeca201a90894634575a
tree0ad88aa4377521d9c082b1a5251e00fa01bd987d
parentacf0beedd1c4fd97c457a09a3fd8e15276a740e5
dm mpath: remove extra nesting in map function

Return early for case when no path exists, and when the
pathgroup isn't ready. This eliminates the need for
extra nesting for the the common case.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
drivers/md/dm-mpath.c