Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5493940yba; Mon, 13 May 2019 11:48:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwbOI+IEDin2RqDnUeeC5v+pLni+myY5lj79uNCOjc3ZIb9rLGJiLxNkI9ehk+vDUu/12s6 X-Received: by 2002:a65:62c4:: with SMTP id m4mr33195975pgv.308.1557773338553; Mon, 13 May 2019 11:48:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557773338; cv=none; d=google.com; s=arc-20160816; b=P0aXUipF8N1SBMNcHX8ptFfeiN41ujrVwB+zhtz0HESahiggGp1E0IjH0cvzqgTK+d kbhAV9x5nVuCpQdIw6ooWHhsSQTC8L0B3rnI0G72Z/LGXncVb69CbS2io9Os9B5g7bFw r5zS5WUt1lmDM8OFbk+Hs9JYgvmcGMtG9aoyGJuW9ZKpvtgc6129aIdUrzAtDzRjZcq5 eRY6UQJD1SIzEmaXTB+WQ6ovP4Lrm01XOhFVPYTnpHtZ4g6T6Z6YHr6RC+kKk5aqIpoM OIgRiinppwK98xuEmk8e3oCphMRzl6MIONCt1uLp5niHy8hvSFkARPBZJ7SwxvL7QhQW e/Yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :mime-version:dkim-signature; bh=L3LU3ww7WrkzHMtYsuuf2zQt4k+sdxI7TqmkMgaJQWU=; b=uH4s+da1scJcyH7FeeCRKg30d6C7t4wL9TP34KIJNJAjp7HPWYKwAewfMK0NSY1j0H EKtk32NZpa/w/XLaM19Z6C10MWupzyi0vUCXiHCIIOcYojykPpZpvclDDujfdZTj/bks L11GrDgd37htxUyL/kDZErfH01rY+QW9yXNtxBcQqKMd3qa5+Nft6//ZN19sbyQ8KiYQ xeUJIUT9ovXSleNDIp2Z0qaozY2btkPU5maMgQptBqie3fQsCgsFwPw82bjLPQq2z/KX sDPaY3Dr9KYUQdOb1mCMTiEasZ71VJ9dX5qPF3LK6pZkmI8eIe2AagkX1/4Qfdp1U/Q/ LEjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=G5ldiDES; 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=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d75si20445814pfm.259.2019.05.13.11.48.42; Mon, 13 May 2019 11:48:58 -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=@chromium.org header.s=google header.b=G5ldiDES; 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=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729541AbfEMQSj (ORCPT + 99 others); Mon, 13 May 2019 12:18:39 -0400 Received: from mail-ua1-f67.google.com ([209.85.222.67]:45444 "EHLO mail-ua1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728954AbfEMQSh (ORCPT ); Mon, 13 May 2019 12:18:37 -0400 Received: by mail-ua1-f67.google.com with SMTP id n7so5019034uap.12 for ; Mon, 13 May 2019 09:18:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:from:date:message-id:subject:to:cc; bh=L3LU3ww7WrkzHMtYsuuf2zQt4k+sdxI7TqmkMgaJQWU=; b=G5ldiDESrOvAWWdLZwcE9A08+emS6Z8k1ss9348TCBOVWo0b+kvZ33MIL8uwQFrWvB NQBx7bOD2QELaIzDyc8VnPKPk1lg5TsWLykqG6uOl/t2SD8cBr3w5RgoO8CN0li4eUrc K4lKdveXJgH9wFsSlk11ljnT2LZTAuYXihltQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=L3LU3ww7WrkzHMtYsuuf2zQt4k+sdxI7TqmkMgaJQWU=; b=oey/y+r3ySFayYQ+OxJquNnIXCpuHeFa/IMU9BKex6crHiqNyijbjZbCsmDmDJ1UnU DKK+Nbqx3kziC/TTBmoAfnmKFD0ie+XWO7qnQ90HC0zKJdR28iVMEPrf4Ut+ThGY7O5r JlFey2mcnM2TaPokwEqtyKFtHlk3mkip3y5vhnD85MROWsN0cxcmIXIHUdHLum/AYazB w++spRknZwkPZMp0QtoS6vGsmZo39qY9XceG2o2fqnfbzau1yb7HA1LFUivVocSVt0dJ fawkJt/Heez/uGlypB8lEnXsw+6f9W2emYGXh7rExKQaQ6y9DQ8svwoZwLJQ4/05I+zd BCvA== X-Gm-Message-State: APjAAAWQFuuJyslZMcoG08782lUui1j9ZMxyVdEh7xlx7PPnfzEJsfX3 rqCD6QrcqgEIwNC7+NukbpH+cI+ZK30= X-Received: by 2002:a9f:3731:: with SMTP id z46mr1773207uad.16.1557764315574; Mon, 13 May 2019 09:18:35 -0700 (PDT) Received: from mail-ua1-f49.google.com (mail-ua1-f49.google.com. [209.85.222.49]) by smtp.gmail.com with ESMTPSA id v141sm7477090vsc.8.2019.05.13.09.18.34 for (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Mon, 13 May 2019 09:18:34 -0700 (PDT) Received: by mail-ua1-f49.google.com with SMTP id g16so5035576uad.2 for ; Mon, 13 May 2019 09:18:34 -0700 (PDT) X-Received: by 2002:ab0:2709:: with SMTP id s9mr13325214uao.21.1557764314196; Mon, 13 May 2019 09:18:34 -0700 (PDT) MIME-Version: 1.0 From: Doug Anderson Date: Mon, 13 May 2019 09:18:23 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Problems caused by dm crypt: use WQ_HIGHPRI for the IO and crypt workqueues To: Tim Murray , Mike Snitzer , Guenter Roeck Cc: Enric Balletbo i Serra , Vito Caputo , LKML , dm-devel@redhat.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, I wanted to jump on the bandwagon of people reporting problems with commit a1b89132dc4f ("dm crypt: use WQ_HIGHPRI for the IO and crypt workqueues"). Specifically I've been tracking down communication errors when talking to our Embedded Controller (EC) over SPI. I found that communication errors happened _much_ more frequently on newer kernels than older ones. Using ftrace I managed to track the problem down to the dm crypt patch. ...and, indeed, reverting that patch gets rid of the vast majority of my errors. If you want to see the ftrace of my high priority worker getting blocked for 7.5 ms, you can see: https://bugs.chromium.org/p/chromium/issues/attachmentText?aid=392715 In my case I'm looking at solving my problems by bumping the CrOS EC transfers fully up to real time priority. ...but given that there are other reports of problems with the dm-crypt priority (notably I found https://bugzilla.kernel.org/show_bug.cgi?id=199857) maybe we should also come up with a different solution for dm-crypt? Thanks! -Doug