dm mpath: fix stalls when handling invalid ioctls
authorHannes Reinecke <hare@suse.de>
Wed, 26 Feb 2014 09:07:04 +0000 (10:07 +0100)
committerJiri Slaby <jslaby@suse.cz>
Wed, 5 Mar 2014 16:13:55 +0000 (17:13 +0100)
commit9673d7e741510a68069578a775cd0c49ef8825df
treedc17f51b164f712a40b2171ab3ec69633188ba93
parenta5a928314b25f7b5c08629a2993807e998c90224
dm mpath: fix stalls when handling invalid ioctls

commit a1989b330093578ea5470bea0a00f940c444c466 upstream.

An invalid ioctl will never be valid, irrespective of whether multipath
has active paths or not.  So for invalid ioctls we do not have to wait
for multipath to activate any paths, but can rather return an error
code immediately.  This fix resolves numerous instances of:

 udevd[]: worker [] unexpectedly returned with status 0x0100

that have been seen during testing.

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