MRP-1823 libcfs: fix for thread create

This patch use kthread_run() to create kernel thread instead of
kernel_thread() that requires tricks to clear the thread like
daemonize() and other things. The OOM will not take new threads
cause they have current->mm equal to NULL. Creating thread with
open journal transaction is too bad, and handled by assert.

Signed-off-by: Alexander Boyko <alexander_boyko@xyratex.com>
Change-Id: Ifb0478d5c6ddbb4e36cb0101a4b8a3de8f8e04b3
Reviewed-on: http://es-gerrit.xyus.xyratex.com:8080/1866
Tested-by: Jenkins
Reviewed-by: Andrew Perepechko <andrew_perepechko@xyratex.com>
Tested-by: Elena Gryaznova <elena_gryaznova@xyratex.com>
Reviewed-by: Alexey Lyashkov <alexey_lyashkov@xyratex.com>
Reviewed-by: Vitaly Fertman <vitaly_fertman@xyratex.com>
MRP-1486 tests: fix assign target index

wait until target will registed on mgs to obtain correct index
in e2label result

Signed-off-by: Elena Gryaznova <Elena_Gryaznova@xyratex.com>
Change-Id: I8e6b7b90d0001e7302c97970fedcba5f0a2b2c73
Reviewed-on: http://es-gerrit.xyus.xyratex.com:8080/975
Tested-by: Jenkins
Reviewed-by: Elena Gryaznova <elena_gryaznova@xyratex.com>
Tested-by: Elena Gryaznova <elena_gryaznova@xyratex.com>
Reviewed-by: Vitaly Fertman <vitaly_fertman@xyratex.com>