Skip to content

Commit

Permalink
genhd: fix leftover might_sleep() in blk_free_devt()
Browse files Browse the repository at this point in the history
Commit 2da7809 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 <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
axboe committed Sep 22, 2014
1 parent 8b95741 commit 46f341f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions block/genhd.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,6 @@ int blk_alloc_devt(struct hd_struct *part, dev_t *devt)
*/
void blk_free_devt(dev_t devt)
{
might_sleep();

if (devt == MKDEV(0, 0))
return;

Expand Down

0 comments on commit 46f341f

Please sign in to comment.