Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3628948imm; Mon, 4 Jun 2018 06:53:21 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLPdqvwgROPZ6vCJDOC3JkMee+8uFeCVVFwhZkx9YBME9LHHpTc5k2Go2qq/Sv16ocPnG25 X-Received: by 2002:a17:902:4101:: with SMTP id e1-v6mr21895440pld.205.1528120401857; Mon, 04 Jun 2018 06:53:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528120401; cv=none; d=google.com; s=arc-20160816; b=rCf6RG89xWDjdKkwDAvoJNVDKwuDlZxQRFGk0ljH6Yxw7Bfp3eBp4bbKCuAQS8cNin 5V5i9mgG5wP2PVkasIylkrkDuWZCfxY65CQ9O357DLwXVppQUp8SF/D9OmvW6CbBVZsm URwenh3UjOLCnQt4xUXopDWt5xLfWCRs5KctzFL9v8vzE1xjQi4gv7NWRVYR1+jFGoaN nShkzOrazAc0ZHwdc0r3/HiL9XwGQ+Xqapm7sscHFBZ/CEMmqeFWLHpp8CdBLtTzW1Sk mQOCpnBgMiqj+UCsTToktDedXp/p+54DdI1cW+QA3S8X5jdYFW/RmK+W8iq9foWHmqOG C+ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=xyCJEXkahq4VqNtGnh3d9CxROCopmYnoQZnrWaZKPjY=; b=a01wClhHjqdt7uFd2a50nBtRQyfbgCt6wdxsdu6Jr+4C4hdMfO+j5/cwb98ZTp9fC/ 1RePfeVlsipNr0y75E8XBWQGbxe286vUK/6JWn+vZ0e4jgdgzISXjxArN7dM5/KigmHw 3Kl//W9rg3WtCOnfeVj++AZK28kuRiF4WONilgrTxJaEL2V7VMWZXwS67CMTi83VeuWA KZ9G0rIneBcXcJfcGu82coIBNimXnjSmVNCP0o+bXRWfkxwbdQwyWtJ5y4JmZvvPlImB ynnmC+9g3GkejaaJFo0jzx0sl2K4Gk3ZsaUfMXjxcDO8/P571VzAiRXGh6HEjRscIbW4 /oJA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f186-v6si10733893pfg.194.2018.06.04.06.53.06; Mon, 04 Jun 2018 06:53:21 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753372AbeFDNwg (ORCPT + 99 others); Mon, 4 Jun 2018 09:52:36 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:60786 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753163AbeFDNwf (ORCPT ); Mon, 4 Jun 2018 09:52:35 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C9EB0C12AA; Mon, 4 Jun 2018 13:52:34 +0000 (UTC) Received: from gondolin (dhcp-192-222.str.redhat.com [10.33.192.222]) by smtp.corp.redhat.com (Postfix) with ESMTP id C9EC6200BCEB; Mon, 4 Jun 2018 13:52:33 +0000 (UTC) Date: Mon, 4 Jun 2018 15:52:31 +0200 From: Cornelia Huck To: Pierre Morel Cc: pasic@linux.vnet.ibm.com, bjsdjshi@linux.vnet.ibm.com, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH v2 01/10] vfio: ccw: Moving state change out of IRQ context Message-ID: <20180604155231.42c139ac.cohuck@redhat.com> In-Reply-To: <1527243678-3140-2-git-send-email-pmorel@linux.vnet.ibm.com> References: <1527243678-3140-1-git-send-email-pmorel@linux.vnet.ibm.com> <1527243678-3140-2-git-send-email-pmorel@linux.vnet.ibm.com> Organization: Red Hat GmbH MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Mon, 04 Jun 2018 13:52:34 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Mon, 04 Jun 2018 13:52:34 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'cohuck@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 25 May 2018 12:21:09 +0200 Pierre Morel wrote: > Let's move the state change from the IRQ routine to the > workqueue callback. > > Signed-off-by: Pierre Morel > --- > drivers/s390/cio/vfio_ccw_drv.c | 20 +++++++------------- > drivers/s390/cio/vfio_ccw_fsm.c | 14 ++++++++------ > 2 files changed, 15 insertions(+), 19 deletions(-) This causes a change in behaviour for devices in the notoper state. Now: - vfio_ccw_sch_irq is called - via the state machine, disabling the subchannel is (re-)triggered With your patch: - the work function is queued in any case; eventually, it will change the device's state to idle (unless we don't have an mdev at that point in time) - completion is signaled I'm not sure that's what we want.