[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1417077794-9299-74-git-send-email-lizf@kernel.org>
Date: Thu, 27 Nov 2014 16:42:57 +0800
From: lizf@...nel.org
To: stable@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, Jens Axboe <axboe@...com>,
Zefan Li <lizefan@...wei.com>
Subject: [PATCH 3.4 74/91] genhd: fix leftover might_sleep() in blk_free_devt()
From: Jens Axboe <axboe@...com>
3.4.105-rc1 review patch. If anyone has any objections, please let me know.
------------------
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@...il.com>
Signed-off-by: Jens Axboe <axboe@...com>
Signed-off-by: Zefan Li <lizefan@...wei.com>
---
block/genhd.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/block/genhd.c b/block/genhd.c
index 54867f4..60f7e6c 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;
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists