From patchwork Fri Dec 13 20:13:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Henrique Cerri X-Patchwork-Id: 1209411 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47ZMM217Wzz9sPW; Sat, 14 Dec 2019 07:14:06 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1ifrJv-0006Za-AW; Fri, 13 Dec 2019 20:13:51 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1ifrJt-0006ZM-62 for kernel-team@lists.ubuntu.com; Fri, 13 Dec 2019 20:13:49 +0000 Received: from mail-pg1-f198.google.com ([209.85.215.198]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1ifrJs-00073S-O1 for kernel-team@lists.ubuntu.com; Fri, 13 Dec 2019 20:13:48 +0000 Received: by mail-pg1-f198.google.com with SMTP id v30so125299pga.22 for ; Fri, 13 Dec 2019 12:13:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=gABZxZNmw7T4hrOksLe6YFlv4ei1tOc2e/z4Yn8MuuE=; b=r0FqIs9PkS9d3jASuTc8tBY1PoAfU1HKPLbXSjvqpkZE1mUSM4JDvMziCTgnZcsFSF 1MeRk9FIoe1bXYAOpDIzUx6offqY0LoWhb5It+VxY3rAqhkRdSr1iT0M7yUvkd6Ft1fq RGW0D48aoIUQ6bM94MQgSJBZCjunFGKXoESyB6PXQIpOUjDwC78gXmxU0TTQ9zkfR+j6 1/0IQUPHjeJR1HQgwPk5kJjNZy0frcoy1fNC1IDP9Jh+LcYdKQEqwNWaJHuCHUODISrk l5ju2oZKZRM31gho3Cf3q9kt9BJYCB8i8U1GhIOM0wOi5L/JAEI2piXOEiWGXzhrRbOt 29hw== X-Gm-Message-State: APjAAAW620pFyaxef6ar+/x8Y/UClgsez8FvXMyDWe6SdipG/gFw/pm0 CXKLt+s/ZrNkD9qKt3Jwop574blqPjhQdKAlSaI1Jtt16iZzwtM5VEanC1S7G+SCrqvrz6Tp0m3 Se8R2TPa6qFNeTDuydYNrV5PYAUM8CUUt5H22N88c X-Received: by 2002:a17:90a:1696:: with SMTP id o22mr1389103pja.78.1576268026974; Fri, 13 Dec 2019 12:13:46 -0800 (PST) X-Google-Smtp-Source: APXvYqy43NGhzxh76Kz8se0MMAfogRYf3sowQJdPwqSmcd42AYBiIgJcUjY4yR1hSJyCi5qE37j/uQ== X-Received: by 2002:a17:90a:1696:: with SMTP id o22mr1389048pja.78.1576268026301; Fri, 13 Dec 2019 12:13:46 -0800 (PST) Received: from gallifrey ([2804:14c:4e6:1bc:c91c:552d:174c:2550]) by smtp.gmail.com with ESMTPSA id q9sm12211266pgc.5.2019.12.13.12.13.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2019 12:13:45 -0800 (PST) Date: Fri, 13 Dec 2019 17:13:40 -0300 From: Marcelo Henrique Cerri To: kernel-team@lists.ubuntu.com Subject: [bionic:linux][PULL] LP:#1848739 - [linux] Patch to prevent possible data corruption Message-ID: <20191213201340.7ekvehdt3olwpk4x@gallifrey> MIME-Version: 1.0 User-Agent: NeoMutt/20180716 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1848739 This patch set was already included into the 4.15 xenial:linux-azure kernel, but it affects all our 4.15 kernels and the same issue was already reported for the 4.15 linux-gcp kernel. The patch set was already tested against linux-gcp, as described on the LP bug, with positive results. Since we have positive feedbacks with both linux-azure and linux-gcp, the risk of regression for the inclusion on the 4.15 master kernel should be small. Acked-by: Stefan Bader Acked-by: Kleber Sacilotto de Souza --- The following changes since commit bdefbb8e170ff68940ffcaec6456ba3986cb0ce7: selftests/net: correct the return value for run_afpackettests (2019-12-10 15:30:55 +0100) are available in the Git repository at: git://git.launchpad.net/~mhcerri/ubuntu/+source/linux/+git/bionic lp1848739 for you to fetch changes up to f249c87a984b9f638fac9af5ed48d800ed107971: blk-mq: punt failed direct issue to dispatch list (2019-12-13 15:18:16 -0300) ---------------------------------------------------------------- Bart Van Assche (1): blk-mq: Rename blk_mq_request_direct_issue() into blk_mq_request_issue_directly() Jens Axboe (4): blk-mq: move hctx lock/unlock into a helper blk-mq: don't queue more if we get a busy return blk-mq: fix corruption with direct issue blk-mq: punt failed direct issue to dispatch list Mike Snitzer (2): blk-mq: factor out a few helpers from __blk_mq_try_issue_directly blk-mq-sched: remove unused 'can_block' arg from blk_mq_sched_insert_request Ming Lei (7): blk-mq: quiesce queue during switching io sched and updating nr_requests blk-mq: improve DM's blk-mq IO merging via blk_insert_cloned_request feedback blk-mq: don't dispatch request in blk_mq_request_direct_issue if queue is busy blk-mq: introduce BLK_STS_DEV_RESOURCE blk-mq: dequeue request one by one from sw queue if hctx is busy blk-mq: issue directly if hw queue isn't busy in case of 'none' blk-mq: fail the request in case issue failure Yufen Yu (1): dm mpath: fix missing call of path selector type->end_io block/blk-core.c | 4 +- block/blk-exec.c | 2 +- block/blk-mq-debugfs.c | 9 ++ block/blk-mq-sched.c | 26 +++-- block/blk-mq-sched.h | 2 +- block/blk-mq.c | 258 +++++++++++++++++++++++++++++++++---------- block/blk-mq.h | 5 + block/elevator.c | 2 + drivers/block/null_blk.c | 2 +- drivers/block/virtio_blk.c | 2 +- drivers/block/xen-blkfront.c | 2 +- drivers/md/dm-rq.c | 20 +++- drivers/nvme/host/fc.c | 12 +- drivers/scsi/scsi_lib.c | 6 +- include/linux/blk-mq.h | 3 +- include/linux/blk_types.h | 18 +++ 16 files changed, 281 insertions(+), 92 deletions(-)