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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Oct 2014 21:52:20 +0000 (14:52 -0700)
commit9783e9905e58eab4ddbdccbf66d83e9aecbf50d1
tree40b7be97f8c54ff52c6949316dd90fad4367f04e
parent0c99fc04f3d4f8a0731c2cc1b2b4d363542b9bbe
genhd: fix leftover might_sleep() in blk_free_devt()

commit 46f341ffcfb5d8530f7d1e60f3be06cce6661b62 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
block/genhd.c