• Shaohua Li's avatar
    MD: warn for potential deadlock · 70d9798b
    Shaohua Li authored
    The personality thread shouldn't call mddev_suspend(). Because
    mddev_suspend() will for all IO finish, but IO is handled in personality
    thread, so this could cause deadlock. To trigger this early, add a
    warning if mddev_suspend() is called from personality thread.
    Suggested-by: default avatarNeilBrown <neilb@suse.com>
    Cc: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
    Signed-off-by: default avatarShaohua Li <shli@fb.com>
    70d9798b
md.c 229 KB