]> git.baikalelectronics.ru Git - kernel.git/commit
rbd: mark block queue as non-rotational
authorIlya Dryomov <idryomov@gmail.com>
Tue, 24 Mar 2015 13:15:17 +0000 (16:15 +0300)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 20 Apr 2015 15:55:38 +0000 (18:55 +0300)
commit965a7b18578da6d4e902f44b8fc0e7f91f4b4abc
tree7452f5e3d0c623bfe10feeb0aeabb699be56d620
parent03a02a290a4ebdd93e65523391d8f5ebb6b47c1a
rbd: mark block queue as non-rotational

Set QUEUE_FLAG_NONROT.  Following commit 2ed40c8bf12d ("block: disable
entropy contributions for nonrot devices") we should also clear
QUEUE_FLAG_ADD_RANDOM, but it's off by default for blk-mq drivers, so
just note it in the comment.

Also remove physical block size assignment - no sense in repeating
defaults that are not going to change.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
drivers/block/rbd.c