Received: by 10.192.165.156 with SMTP id m28csp2616574imm; Sun, 15 Apr 2018 05:17:01 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+b8qUSFyNbQqk6fIBELSXnsGJlxOPglU/EIHUDuEiy1qM9A2OTtB+WivLsBONg7Y/FuMR4 X-Received: by 10.99.180.6 with SMTP id s6mr9532245pgf.81.1523794621183; Sun, 15 Apr 2018 05:17:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523794621; cv=none; d=google.com; s=arc-20160816; b=GWeBkSxYOejiLgTKgEZYSmwJU6VgCBsY5wppoXTHVsQf+2fycf9H6eFnstgu/2G6ym OcgHoV9/gZPiNl4xw3k3rAlYtuCHTUTH+B0q3021rRuCFkXixdpgmnx3gUa3R4Gn73dY QdgAEBHUKCEdIw5Q7/dmXN+d7gvkumP+l2uk9j4qObfMdY+BKC3HZ6qx9ryIZc3LFIKd KmCOZiN7cvRfFsgpfOVWkXwhL0jcBu0OgPms6p/WVQeIhFSKWVm2lBOZtTmlLEBShLPL gNgdN2ZajZym9DE6jJ0IzVs5bgGiMeShIdO5TCsgGjrRbuvR5D15G2KllwS9p0Gn+iLA bJpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=h+Dad4+YcNnTUZUE22c7cXcI4imMNUDjwkKxZ/fyt3s=; b=xhfmX1INeoEQ93sXLM2LmK+J0X9mj0QWiwvszzYdYfQYC9cNeUmDOfg7eXrd5Y8xBP l31RS1Ah5V4gPiMlfJQw8w6jzJ20YAV5o+bsfLDwh61rCB9/n6qgDxN106gR70vA/gKu RGdfaemBedvvMCSo/w3IzTWZ+oNavSVsQ0MKl7JFBK7jDf7iZqZabkLlcrU+FTrOW2Qp WN8hZUhUmFL4XM/Y8nhLbg0tMD2cAZCPRObpWV75dy6DFGt78Mig0hQDSzTLNxvDqwOw BWN42gZpPkG6ZdQWfwDAKORx5ci7iNv1oNF+f2DA/Awh6LtS6PrS5K/rc7B2/a2t/CXs cANA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rWUTuYnz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b2si4424175pgf.13.2018.04.15.05.16.46; Sun, 15 Apr 2018 05:17:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rWUTuYnz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752459AbeDOMPm (ORCPT + 99 others); Sun, 15 Apr 2018 08:15:42 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:46820 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752258AbeDOMPj (ORCPT ); Sun, 15 Apr 2018 08:15:39 -0400 Received: by mail-wr0-f195.google.com with SMTP id d1so18658458wrj.13; Sun, 15 Apr 2018 05:15:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=h+Dad4+YcNnTUZUE22c7cXcI4imMNUDjwkKxZ/fyt3s=; b=rWUTuYnzBXDsCJDCqiUFr13S04m6wK8VVkXnySsneK/k1HPaUlz/TCFVD7UcFCkOBz xpaJ/0jA99RsYWhMucUZuHvTLyZBnQ41rsTaZucP9umm+IxxbsyPGBtYo5MHStKHmEy1 ENlYJRF1PRfM1KQleqYdhT7qkCu34FWiLvZH/skSVmfr5rLjLrXX2bYqGBFnt53IEZy/ Bv2Zne9WOuMwA177nNKcluVOVs/3KYDwMMj7Xtwx93yfulsa62y8jMKO24qCq6SB+N0V hBJf2gm3b2WYpfiPrpmDphbbJxN+oZR6mxef1UQaQ7+KXokbM/hjOehATAb0DGpM4eGY Nzjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=h+Dad4+YcNnTUZUE22c7cXcI4imMNUDjwkKxZ/fyt3s=; b=SVgRTEq6varqH3Dk1iNS/umut+YtESwEupI5VCzNiy2JhxG0/Be6yWwtHnhSRVUWwu yfrMXfeuYqFqz+GbTc97zPJhLJSxmw8CdK9a/A5Zix8i81inpqYI0o9pnoO3POLbhYuv LSLC28dY2hK4Abzt9Fjw62ewp1K9veupfXNIq7JRpb9cQz/TmrNxCYMgRLMJZBIxzRDW 8NVZ4l/uBRXY7bWgY44D3v/3wvKBDKkRSKxleyxPvkq31AhrEoeEvUZwcAkZZ9r5mOWJ yCjmND45tP/ckwUqNwBw64XBoV8h0jDv6WJWa0k6s3Y74WOM5YmymXwDKgZ2hbRZJXH3 fDnQ== X-Gm-Message-State: ALQs6tDKXtG7W5Ecrp3FNPpunq/7y/+OxRl7r1tk2vV2lMBkTGbwR/Fz PpO5THxQpJm4NZrrN6c202H/CalC X-Received: by 10.28.139.5 with SMTP id n5mr7945453wmd.85.1523794537712; Sun, 15 Apr 2018 05:15:37 -0700 (PDT) Received: from [172.16.1.192] (host-89-243-165-90.as13285.net. [89.243.165.90]) by smtp.gmail.com with ESMTPSA id a62sm5511415wmh.5.2018.04.15.05.15.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 15 Apr 2018 05:15:36 -0700 (PDT) Subject: Re: blktest for [PATCH v2] block: do not use interruptible wait anywhere To: Jens Axboe , Johannes Thumshirn , linux-block@vger.kernel.org Cc: Bart Van Assche , linux-kernel@vger.kernel.org, stable@vger.kernel.org References: <13e67e1243ebd96f3f56a150d47444ada47ebde0.camel@wdc.com> <20180412181158.8884-1-alan.christopher.jenkins@gmail.com> <1523608284.7787.3.camel@suse.de> From: Alan Jenkins Message-ID: <891e334c-cf19-032c-b996-59ac166fcde1@gmail.com> Date: Sun, 15 Apr 2018 13:15:35 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14/04/18 20:52, Jens Axboe wrote: > On 4/14/18 1:46 PM, Alan Jenkins wrote: >> On 13/04/18 09:31, Johannes Thumshirn wrote: >>> Hi Alan, >>> >>> On Thu, 2018-04-12 at 19:11 +0100, Alan Jenkins wrote: >>>> # dd if=/dev/sda of=/dev/null iflag=direct & \ >>>> while killall -SIGUSR1 dd; do sleep 0.1; done & \ >>>> echo mem > /sys/power/state ; \ >>>> sleep 5; killall dd # stop after 5 seconds >>> Can you please also add a regression test to blktests[1] for this? >>> >>> [1] https://github.com/osandov/blktests >>> >>> Thanks, >>> Johannes >> Good question. It would be nice to promote this test. >> >> Template looks like I need the commit (sha1) first. >> >> I had some ideas about automating it, so I wrote a standalone (see >> end).  I can automate the wakeup by using pm_test, but this is still a >> system suspend test.  Unfortunately I don't think there's any >> alternative. To give the most dire example >> >> # This test is non-destructive, but it exercises suspend in all drivers. >> # If your system has a problem with suspend, it might not wake up again. >> >> >> So I'm not sure if it would be acceptable for the default set? >> >> How useful is this going to be? Is there an expanded/full set of tests >> that gets run somewhere? >> >> If you can't guarantee it's going to be run somewhere, I'd worry the >> cost/benefit  feels a little narrow :-(. There were one or two further >> "interesting" details, and it might theoretically bitrot if it's not run >> periodically. > I run it, just last week we found two new bugs with it. I'm requiring > anyone that submits block patches to run the test suite, and also > working towards having it be part of the 0-day runs so it gets run > on posted patches automatically. > > So yes, it's useful and it won't bitrot. Please do turn it into a blktests > test. Thanks, it's really great to have a test suite. I was specifically checking in on how we can include a system suspend test. I've been thinking the suspend test could be opt-in test (e.g. ALLOW_PM_TEST=1), and then we have some infrastructure (you or 0-day runs) that does the opt-in.  Without knowing anything about the infrastructure, I didn't want to assume that would work. I'm aware of one particular suspend issue; inside virt-manager VMs I see Linux crashing with a null pointer in qxl_drm_freeze.  A regression soon after I learned how to use VMs for suspend tests :-( , and it's been long enough that I suspect few people use it. Partly what you saw me fishing for in the comments, is the idea of some kernel code allowing more direct testing of the queue freeze / preempt_only flag.  That might be better engineering, but I don't know where I could put it. Alan