]> git.itanic.dy.fi Git - linux-stable/commit
dm mpath: fix stalls when handling invalid ioctls
authorHannes Reinecke <hare@suse.de>
Wed, 26 Feb 2014 09:07:04 +0000 (10:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Mar 2014 06:06:30 +0000 (22:06 -0800)
commit40e93d9d4ca18dc53f2e67896535549fc9e55f74
treef2c5edbfa73983aebfa9db9f5ae4cc4b46aa3c34
parentaa9d53380e63a462329b54bfb00c9f9d5288cf46
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm-mpath.c