Skip to content

Commit 75bb462

Browse files
committed
blk-mq: add file comments and update copyright notices
None of the blk-mq files have an explanatory comment at the top for what that particular file does. Add that and add appropriate copyright notices as well. Signed-off-by: Jens Axboe <axboe@fb.com>
1 parent d852564 commit 75bb462

4 files changed

Lines changed: 28 additions & 0 deletions

File tree

‎block/blk-mq-cpu.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* CPU notifier helper code for blk-mq
3+
*
4+
* Copyright (C) 2013-2014 Jens Axboe
5+
*/
16
#include <linux/kernel.h>
27
#include <linux/module.h>
38
#include <linux/init.h>

‎block/blk-mq-cpumap.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* CPU <-> hardware queue mapping helpers
3+
*
4+
* Copyright (C) 2013-2014 Jens Axboe
5+
*/
16
#include <linux/kernel.h>
27
#include <linux/threads.h>
38
#include <linux/module.h>

‎block/blk-mq-tag.c‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
/*
2+
* Fast and scalable bitmap tagging variant. Uses sparser bitmaps spread
3+
* over multiple cachelines to avoid ping-pong between multiple submitters
4+
* or submitter and completer. Uses rolling wakeups to avoid falling of
5+
* the scaling cliff when we run out of tags and have to start putting
6+
* submitters to sleep.
7+
*
8+
* Uses active queue tracking to support fairer distribution of tags
9+
* between multiple submitters when a shared tag map is used.
10+
*
11+
* Copyright (C) 2013-2014 Jens Axboe
12+
*/
113
#include <linux/kernel.h>
214
#include <linux/module.h>
315
#include <linux/random.h>

‎block/blk-mq.c‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Block multiqueue core code
3+
*
4+
* Copyright (C) 2013-2014 Jens Axboe
5+
* Copyright (C) 2013-2014 Christoph Hellwig
6+
*/
17
#include <linux/kernel.h>
28
#include <linux/module.h>
39
#include <linux/backing-dev.h>

0 commit comments

Comments
 (0)