• Arnd Bergmann's avatar
    swim3: fix interruptible_sleep_on race · 106fd892
    Arnd Bergmann authored
    interruptible_sleep_on is racy and going away. This replaces the one
    caller in the swim3 driver with the equivalent race-free
    wait_event_interruptible call. Since we're here already, this
    also fixes the case where we get interrupted from atomic context,
    which used to just spin in the loop.
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Cc: Jens Axboe <axboe@kernel.dk>
    Signed-off-by: default avatarJens Axboe <axboe@fb.com>
    106fd892
swim3.c 31.7 KB