Skip to content

Commit 00c1825

Browse files
axboeJiri Slaby
authored andcommitted
genhd: fix leftover might_sleep() in blk_free_devt()
commit 46f341f upstream. 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 <pontus.fuchs@gmail.com> Signed-off-by: Jens Axboe <axboe@fb.com> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
1 parent a6130e3 commit 00c1825

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

‎block/genhd.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,8 +445,6 @@ int blk_alloc_devt(struct hd_struct *part, dev_t *devt)
445445
*/
446446
void blk_free_devt(dev_t devt)
447447
{
448-
might_sleep();
449-
450448
if (devt == MKDEV(0, 0))
451449
return;
452450

0 commit comments

Comments
 (0)