From patchwork Wed May 1 04:28:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chaitanya Kulkarni X-Patchwork-Id: 10924495 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A3F5314B6 for ; Wed, 1 May 2019 04:29:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 95ED028D1E for ; Wed, 1 May 2019 04:29:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8A36328D29; Wed, 1 May 2019 04:29:32 +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=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 41C9D28D1E for ; Wed, 1 May 2019 04:29:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726137AbfEAE3b (ORCPT ); Wed, 1 May 2019 00:29:31 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:27525 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726133AbfEAE3b (ORCPT ); Wed, 1 May 2019 00:29:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1556685052; x=1588221052; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9Htdj/Q7bSm/sNYH+XW98L4WOo8z3fOjC+VVICuh8HE=; b=KdlJGJK6aj8VrvqcnFotxdPbn+83wYBrx2QgBkiMfdQFN/yAq2vAyEgB HZbWCvTIOUjWTwdaUUZn6gNqjbhpkODXvZtnsiTgr49hdY8kyziHz5S3r XhILUwcqDqp52mZuY+G384XnTNGNZ0bH8utA1ESoGiYCXnCZSOl8HkcN5 oei6T3NZsD/f9EIKaiXV1veD2/990Hun4J9LZF35ONTroLkeUhcNA8DEu SWl5UhRwxHQON9yux5Evh8g7vne5iECI0/ixSZjsLZ0bTzVvt3Ly3iDk8 IxdTwhkB99ySLxgITwdB/Hvr8gNlrq2MKjqFc8LC1BSIij3xsnXpv4Mti w==; X-IronPort-AV: E=Sophos;i="5.60,416,1549900800"; d="scan'208";a="206432298" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 01 May 2019 12:30:52 +0800 IronPort-SDR: VJhiCsKrCsDqaNxFP1c+gOJf49xP9uJi6OeAebCw4z8zmPC02y5r4E1Cl9m9DA0hPtgE1l8nGI P7k+qmJStU76TCIL+cGDVHDaURjD/FFniZh1mjKGkiko61Ub3r7YxJb6z8JKdMs7Q9l4Xuljgo DFumqlOBbBgs2tmDKZ9Tgr9qVm1rA3reyAsLeqKzgUHWiT94LYoc2o5WnHX4SRbzDJwZy4oEyN r4qJ+cR67UpgPYxTgp1ikIbpTJfgZVGbwG3uG+GI3DUFLcWLK2kdp8x0vYO9naPpXD9J0dPEQ1 nzLNVvr8K35ZF0YJtzq+gW+L Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep02.wdc.com with ESMTP; 30 Apr 2019 21:08:00 -0700 IronPort-SDR: sdskmMAYw8OZMpL1Lp6gEZ4WQ/N0cOJxXZ4f9vgnEyPRr3O2O1RdrdjMVob8Yz91uJgGtRCOKm vVmon/+j4+mzwLdD1yEk4vnu84cLmDE3H68o9Eqh3HVDvdLrkSjMZYnFnZScfVy9CUsFKRUGw1 Gsm2CP0LKZ8ao1Eg3vacd0AHkS8kTrVPiUVml7E93dXUnFzBV96t3xbFzsRelMldxm6KDglzwO 1GJ1RKYIJ5GTBC1VUKu7BS3ZDdTihgQYF6WwaZm8g8kOUuNxiYiVnviiqluNZ26RQYhdBuIgD5 cVE= Received: from cmercuryqemu.hgst.com ([10.202.65.32]) by uls-op-cesaip01.wdc.com with ESMTP; 30 Apr 2019 21:29:31 -0700 From: Chaitanya Kulkarni To: linux-block@vger.kernel.org Cc: Chaitanya Kulkarni Subject: [RFC PATCH 15/18] power/swap: set bio iopriority field Date: Tue, 30 Apr 2019 21:28:28 -0700 Message-Id: <20190501042831.5313-16-chaitanya.kulkarni@wdc.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190501042831.5313-1-chaitanya.kulkarni@wdc.com> References: <20190501042831.5313-1-chaitanya.kulkarni@wdc.com> MIME-Version: 1.0 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Chaitanya Kulkarni --- kernel/power/swap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/power/swap.c b/kernel/power/swap.c index d7f6c1a288d3..74b6d11fabe2 100644 --- a/kernel/power/swap.c +++ b/kernel/power/swap.c @@ -33,6 +33,7 @@ #include #include #include +#include #include "power.h" @@ -273,6 +274,7 @@ static int hib_submit_io(int op, int op_flags, pgoff_t page_off, void *addr, bio->bi_iter.bi_sector = page_off * (PAGE_SIZE >> 9); bio_set_dev(bio, hib_resume_bdev); bio_set_op_attrs(bio, op, op_flags); + bio_set_prio(bio, get_current_ioprio()); if (bio_add_page(bio, page, PAGE_SIZE, 0) < PAGE_SIZE) { pr_err("Adding page to bio failed at %llu\n",