From c6a6a6e8b12241e5f7ce527d2f73ae2d7d105c26 Mon Sep 17 00:00:00 2001 From: Zach Marano Date: Tue, 2 May 2017 10:46:00 -0700 Subject: [PATCH] Enable SCSI block multiqueue for GCE Stretch images. --- bootstrapvz/providers/gce/tasks/boot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bootstrapvz/providers/gce/tasks/boot.py b/bootstrapvz/providers/gce/tasks/boot.py index 217dc6a..d0f0e7b 100644 --- a/bootstrapvz/providers/gce/tasks/boot.py +++ b/bootstrapvz/providers/gce/tasks/boot.py @@ -12,3 +12,7 @@ class ConfigureGrub(Task): def run(cls, info): info.grub_config['GRUB_CMDLINE_LINUX'].append('console=ttyS0,38400n8') info.grub_config['GRUB_CMDLINE_LINUX'].append('elevator=noop') + # Enable SCSI block multiqueue on Stretch. + from bootstrapvz.common.releases import stretch + if info.manifest.release >= stretch: + info.grub_config['GRUB_CMDLINE_LINUX'].append('scsi_mod.use_blk_mq=Y')