• Richard Weinberger's avatar
    mtd: Make MTD tests cancelable · 2a6a28e7
    Richard Weinberger authored
    I always go nuts when I start an MTD test on a slow device and have to
    wait forever until it finishes. From the debug output I already know
    what the issue is but I have to wait or reset the board hard. Resetting
    is often not an option (remote access, you don't want lose the current
    state, etc...).
    
    The solution is easy, check for pending signals at key positions in the
    code. Using that one can even stop a test by pressing CTRL-C as
    insmod/modprobe have SIGINT pending.
    Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
    Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
    2a6a28e7
stresstest.c 5.56 KB