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:54:13 +0000 (14:54 -0700)
commit459bd57b368c583f53faf84cf8e483837584f9ae
tree844c21dabe7f7a17feb379e430307149ce34d596
parentd4e4b73470ee5e9a93d543cc0eaa4e4d28f1c2df
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