[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1413225357-18981-1-git-send-email-dmonakhov@openvz.org>
Date: Mon, 13 Oct 2014 22:35:57 +0400
From: Dmitry Monakhov <dmonakhov@...nvz.org>
To: linux-kernel@...r.kernel.org
Cc: axboe@...com, keith.busch@...el.com,
Dmitry Monakhov <dmonakhov@...nvz.org>
Subject: [PATCH] block: update locking context for blk_free_devt
After 2da78092 this function will not longer sleepy
Signed-off-by: Dmitry Monakhov <dmonakhov@...nvz.org>
---
block/genhd.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/block/genhd.c b/block/genhd.c
index 09da5e4..ae9aaa5 100644
--- a/block/genhd.c
+++ b/block/genhd.c
@@ -441,12 +441,10 @@ int blk_alloc_devt(struct hd_struct *part, dev_t *devt)
* Free @devt which was allocated using blk_alloc_devt().
*
* CONTEXT:
- * Might sleep.
+ * Don't care.
*/
void blk_free_devt(dev_t devt)
{
- might_sleep();
-
if (devt == MKDEV(0, 0))
return;
--
1.7.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