diff options
author | Jens Axboe <axboe@fb.com> | 2014-09-16 13:38:51 -0600 |
---|---|---|
committer | Zefan Li <lizefan@huawei.com> | 2014-12-01 18:02:41 +0800 |
commit | 62db31b50ea97524defc93b74a851e6d7ca864ed (patch) | |
tree | 8d499e801fcce592920be8d578929e7cbfd61fed /block | |
parent | 48dd9ce77c7e5e4f4ad5be567bf0b939bbfb7872 (diff) | |
download | lwn-62db31b50ea97524defc93b74a851e6d7ca864ed.tar.gz lwn-62db31b50ea97524defc93b74a851e6d7ca864ed.zip |
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: Zefan Li <lizefan@huawei.com>
Diffstat (limited to 'block')
-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 54867f43ad9f..60f7e6ce76b4 100644 --- a/block/genhd.c +++ b/block/genhd.c @@ -447,8 +447,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; |