From patchwork Sun Aug 14 05:23:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhaktipriya Shridhar X-Patchwork-Id: 9278665 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D108C60780 for ; Sun, 14 Aug 2016 09:45:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BF4F0288C0 for ; Sun, 14 Aug 2016 09:45:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AE07C288AA; Sun, 14 Aug 2016 09:45:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 558DD288AA for ; Sun, 14 Aug 2016 09:45:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750813AbcHNJpm (ORCPT ); Sun, 14 Aug 2016 05:45:42 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:33638 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751219AbcHNJpk (ORCPT ); Sun, 14 Aug 2016 05:45:40 -0400 Received: by mail-pf0-f193.google.com with SMTP id i6so2061962pfe.0; Sun, 14 Aug 2016 02:45:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=p3Yn5RhJCLJ/I/aVVqLCfo+pTuOSd9zblXtTkI7l0Fw=; b=MrzBY2msw3+GmrhcUx/mX8z3L1YO3Ht7Fk2zjWkyLjKP2gfzC1HF5bUGCy3ZsRabNj 3JN8zIZ9svD8zIt1j2syTOxl2hueXd1jNMSEvNgW8EUH/Yj6HKyvJhun4ueWauwuSxNr TWv29V3EIXhKTSohAcxXthKj/2vnLGI+7Sexx8sZIDFKClEHSjlpDlRB36VB+lEHmAkq Gv7/poTDMEs+4LhxP1l0CpAWHyMY1hg+pYKhrYYoyQ8nKy5gd6FKcm/ikTmZXqG1JcAi Ordjyos/yxtRcb/Q0/CNAN0df16nShyo1Na5LOLsd2KC0lQ6dmxaDASB22od4824TS0h Uztg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=p3Yn5RhJCLJ/I/aVVqLCfo+pTuOSd9zblXtTkI7l0Fw=; b=PR2uHT/lXrYJo9shmP6wbkAE0V9w8E/GyAN1XqxbvuBhYEBDN48UMRgJjL1yyfVKLx 5PtFgsLxU4twyQvtSpgVINbT+SH6miQTLgNTTJI9VQrPj9O6MhJzB8LBvtAO4Ald6gYw nf7dE3UWQ4+scvNEVZE/g7AB2Y5GX1r31NdORNd6083XFOyFWRRZWY0G6ghfj8hwe2Wv zs1JvbOI1yUkNPFf7TJdfOeqSgMBC1R2WCLiCXYIsu2b/0n96UI4Kkk4Ix7HdVDTl/+a H5WNHgklIrwF6fPen+tOPbgIbIxwYwm2XDX57yEEbsDdQuRCkJoqV1/6N/RJxbwxXOKi Heew== X-Gm-Message-State: AEkoousyG/Yf8pB7BsYN83pzdrnJ3U3C/tYSE8p7K495Vi3NnJWyJDrKEqvRZ9/KCe+fBg== X-Received: by 10.98.18.221 with SMTP id 90mr42188619pfs.3.1471152190714; Sat, 13 Aug 2016 22:23:10 -0700 (PDT) Received: from Karyakshetra ([14.139.82.6]) by smtp.gmail.com with ESMTPSA id r2sm23745754pal.14.2016.08.13.22.23.09 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 13 Aug 2016 22:23:10 -0700 (PDT) Date: Sun, 14 Aug 2016 10:53:07 +0530 From: Bhaktipriya Shridhar To: Dmitry Torokhov , Hans de Goede , Pali =?iso-8859-1?Q?Roh=E1r?= , Chris Diamand , Stefan Assmann , Richard Pospesel , Lars-Peter Clausen , Takashi Iwai Cc: Tejun Heo , patches@opensource.wolfsonmicro.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] Input: psmouse: Remove deprecated create_singletheread_workqueue Message-ID: <83fc8cbf4f5ef7b5e814353468b9ee9d5dd6d7d2.1471151622.git.bhaktipriya96@gmail.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP alloc_ordered_workqueue replaces the deprecated create_singlethread_workqueue. There are multiple work items on the work queue viz &priv->dev3_register_work, &priv->recalib_wq, &psmouse->resync_work, which require execution ordering. Hence, an ordered workqueue has been used. The workqueue is not being used on a memory reclaim path. Hence, WQ_MEM_RECLAIM has not been set. Signed-off-by: Bhaktipriya Shridhar Acked-by: Tejun Heo --- drivers/input/mouse/psmouse-base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/input/mouse/psmouse-base.c b/drivers/input/mouse/psmouse-base.c index 5784e20..fb4b185 100644 --- a/drivers/input/mouse/psmouse-base.c +++ b/drivers/input/mouse/psmouse-base.c @@ -1916,7 +1916,7 @@ static int __init psmouse_init(void) synaptics_module_init(); hgpk_module_init(); - kpsmoused_wq = create_singlethread_workqueue("kpsmoused"); + kpsmoused_wq = alloc_ordered_workqueue("kpsmoused", 0); if (!kpsmoused_wq) { pr_err("failed to create kpsmoused workqueue\n"); return -ENOMEM;