swim3: fix interruptible_sleep_on race
authorArnd Bergmann <arnd@arndb.de>
Wed, 26 Feb 2014 11:01:44 +0000 (12:01 +0100)
committerJens Axboe <axboe@fb.com>
Thu, 13 Mar 2014 20:56:38 +0000 (14:56 -0600)
commit106fd892bc714a9b7c28daba98a3623a41c32f1a
treeaaa08a49fe4c4bcb6ae342649cde84cbd879521e
parent7b8a3d22ba93682a542a445ef43d03f495cdf3d6
swim3: fix interruptible_sleep_on race

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: Arnd Bergmann <arnd@arndb.de>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/swim3.c
This page took 0.025612 seconds and 5 git commands to generate.