Skip to content

Commit

Permalink
blk-mq: add file comments and update copyright notices
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
axboe committed May 28, 2014
1 parent d852564 commit 75bb462
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
5 changes: 5 additions & 0 deletions block/blk-mq-cpu.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* CPU notifier helper code for blk-mq
*
* Copyright (C) 2013-2014 Jens Axboe
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
Expand Down
5 changes: 5 additions & 0 deletions block/blk-mq-cpumap.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
* CPU <-> hardware queue mapping helpers
*
* Copyright (C) 2013-2014 Jens Axboe
*/
#include <linux/kernel.h>
#include <linux/threads.h>
#include <linux/module.h>
Expand Down
12 changes: 12 additions & 0 deletions block/blk-mq-tag.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
/*
* Fast and scalable bitmap tagging variant. Uses sparser bitmaps spread
* over multiple cachelines to avoid ping-pong between multiple submitters
* or submitter and completer. Uses rolling wakeups to avoid falling of
* the scaling cliff when we run out of tags and have to start putting
* submitters to sleep.
*
* Uses active queue tracking to support fairer distribution of tags
* between multiple submitters when a shared tag map is used.
*
* Copyright (C) 2013-2014 Jens Axboe
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/random.h>
Expand Down
6 changes: 6 additions & 0 deletions block/blk-mq.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Block multiqueue core code
*
* Copyright (C) 2013-2014 Jens Axboe
* Copyright (C) 2013-2014 Christoph Hellwig
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/backing-dev.h>
Expand Down

0 comments on commit 75bb462

Please sign in to comment.