* [PATCH] mtd: mark block device queue as non-rotational
@ 2011-09-28 5:21 Dan McGee
2011-10-14 8:34 ` Artem Bityutskiy
0 siblings, 1 reply; 2+ messages in thread
From: Dan McGee @ 2011-09-28 5:21 UTC (permalink / raw)
To: linux-mtd; +Cc: David Woodhouse, linux-kernel
This is similar to what the nbd driver does, among others.
Signed-off-by: Dan McGee <dpmcgee@gmail.com>
---
drivers/mtd/mtd_blkdevs.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/mtd/mtd_blkdevs.c b/drivers/mtd/mtd_blkdevs.c
index ca38569..ed8b5e7 100644
--- 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;
--
1.7.6.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mtd: mark block device queue as non-rotational
2011-09-28 5:21 [PATCH] mtd: mark block device queue as non-rotational Dan McGee
@ 2011-10-14 8:34 ` Artem Bityutskiy
0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2011-10-14 8:34 UTC (permalink / raw)
To: Dan McGee; +Cc: David Woodhouse, linux-mtd, linux-kernel
On Wed, 2011-09-28 at 00:21 -0500, Dan McGee wrote:
> This is similar to what the nbd driver does, among others.
>
> Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Pushed to l2-mtd-2.6.git, thanks!
--
Best Regards,
Artem Bityutskiy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-10-14 8:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-28 5:21 [PATCH] mtd: mark block device queue as non-rotational Dan McGee
2011-10-14 8:34 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).