summaryrefslogtreecommitdiff
path: root/block/blk-mq.h
diff options
context:
space:
mode:
authorYufen Yu <yuyufen@huawei.com>2019-03-18 22:44:41 +0800
committerJens Axboe <axboe@kernel.dk>2019-03-20 14:02:07 -0600
commit29ece8b4354f8c5eaee798a3d8a1b356efee426f (patch)
tree953360a0c9964a71527205e3f427269c80d0f10f /block/blk-mq.h
parent9496c015ed39ddfce971d63a1442e6d258504a7d (diff)
block: add BLK_MQ_POLL_CLASSIC for hybrid poll and return EINVAL for unexpected value
For q->poll_nsec == -1, means doing classic poll, not hybrid poll. We introduce a new flag BLK_MQ_POLL_CLASSIC to replace -1, which may make code much easier to read. Additionally, since val is an int obtained with kstrtoint(), val can be a negative value other than -1, so return -EINVAL for that case. Thanks to Damien Le Moal for some good suggestion. Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com> Signed-off-by: Yufen Yu <yuyufen@huawei.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq.h')
0 files changed, 0 insertions, 0 deletions