genhd: fix leftover might_sleep() in blk_free_devt()
authorJens Axboe <axboe@fb.com>
Tue, 16 Sep 2014 19:38:51 +0000 (13:38 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 22 Sep 2014 20:45:45 +0000 (14:45 -0600)
commit46f341ffcfb5d8530f7d1e60f3be06cce6661b62
tree9c6a8902b10d380d7f8ddb74be1da370f2008008
parent8b95741569eabc5eb17da71d1d3668cdb0bef86c
genhd: fix leftover might_sleep() in blk_free_devt()

Commit 2da78092 changed the locking from a mutex to a spinlock,
so we now longer sleep in this context. But there was a leftover
might_sleep() in there, which now triggers since we do the final
free from an RCU callback. Get rid of it.

Reported-by: Pontus Fuchs <pontus.fuchs@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/genhd.c