diff options
| author | Jens Axboe <axboe@fb.com> | 2014-09-16 15:38:51 -0400 |
|---|---|---|
| committer | Jens Axboe <axboe@fb.com> | 2014-09-22 16:45:45 -0400 |
| commit | 46f341ffcfb5d8530f7d1e60f3be06cce6661b62 (patch) | |
| tree | 9c6a8902b10d380d7f8ddb74be1da370f2008008 | |
| parent | 8b95741569eabc5eb17da71d1d3668cdb0bef86c (diff) | |
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>
| -rw-r--r-- | block/genhd.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/block/genhd.c b/block/genhd.c index 09da5e4a8e03..e6723bd4d7a1 100644 --- a/block/genhd.c +++ b/block/genhd.c | |||
| @@ -445,8 +445,6 @@ int blk_alloc_devt(struct hd_struct *part, dev_t *devt) | |||
| 445 | */ | 445 | */ |
| 446 | void blk_free_devt(dev_t devt) | 446 | void blk_free_devt(dev_t devt) |
| 447 | { | 447 | { |
| 448 | might_sleep(); | ||
| 449 | |||
| 450 | if (devt == MKDEV(0, 0)) | 448 | if (devt == MKDEV(0, 0)) |
| 451 | return; | 449 | return; |
| 452 | 450 | ||
