projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bba688
)
mtd: mark block device queue as non-rotational
author
Dan McGee
<dpmcgee@gmail.com>
Wed, 28 Sep 2011 05:21:42 +0000
(
00:21
-0500)
committer
Artem Bityutskiy
<artem.bityutskiy@intel.com>
Fri, 14 Oct 2011 08:22:48 +0000
(11:22 +0300)
This is similar to what the nbd driver does, among others.
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
drivers/mtd/mtd_blkdevs.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mtd/mtd_blkdevs.c
b/drivers/mtd/mtd_blkdevs.c
index ca385697446ece7ebfe387a4cd99b41cbca9ebbc..ed8b5e744b12abc15b0db0189c972b3331bd1f0b 100644
(file)
--- a/
drivers/mtd/mtd_blkdevs.c
+++ b/
drivers/mtd/mtd_blkdevs.c
@@
-426,6
+426,8
@@
int add_mtd_blktrans_dev(struct mtd_blktrans_dev *new)
new->rq->queuedata = new;
blk_queue_logical_block_size(new->rq, tr->blksize);
+ queue_flag_set_unlocked(QUEUE_FLAG_NONROT, new->rq);
+
if (tr->discard) {
queue_flag_set_unlocked(QUEUE_FLAG_DISCARD, new->rq);
new->rq->limits.max_discard_sectors = UINT_MAX;