]> git.baikalelectronics.ru Git - kernel.git/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)
committerMike Snitzer <snitzer@redhat.com>
Wed, 26 Feb 2014 14:44:44 +0000 (09:44 -0500)
commit0dcd0c705dcd32c82f022a51b9049a318f98b394
tree496a4244b6886198f56f1af84fbfd7a9c6714d6b
parentf59bd82f3619193e341d4355013f9ae1314a2ca9
dm mpath: fix stalls when handling invalid ioctls

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>
Cc: stable@vger.kernel.org
drivers/md/dm-mpath.c