Message ID | 20191030103208.23828-2-aryabinin@virtuozzo.com |
---|---|
State | New |
Series | "Series without cover letter" |
Headers | show
Delivered-To: criupatchwork@gmail.com Received: from gmail-imap.l.google.com [74.125.131.108] by patchwork.criu.org with IMAP (fetchmail-6.3.26) for <root@localhost> (single-drop); Wed, 30 Oct 2019 11:34:36 +0100 (CET) Received: by 2002:a6b:6312:0:0:0:0:0 with SMTP id p18csp1043861iog; Wed, 30 Oct 2019 03:34:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7tq56289WJW80eek4YRnEiOBvdJfk3g09K7AN7RfjHvAjYfPFwzWLUqutEa3TS7W3liou X-Received: by 2002:a19:ec02:: with SMTP id b2mr887074lfa.121.1572431670322; Wed, 30 Oct 2019 03:34:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572431670; cv=none; d=google.com; s=arc-20160816; b=WGxbdVKmT2wfvjkX1IsXTc6uk3sVzeWEaPn2LjNhV1JOQ//Jb9gmJWImWewsASsFhe zQD9mKv8I+Va82UjuYCf4kxaQ/Sp2hGBiz5utQalCWd9ISvgl9t5/AWodnDNGkgDkxgQ 8fMqgERY17u1Jm/6j/3QAYloPdkbwIkA8vWc2x+lLiSJnV3u6P1l7OLIIWb1k1BWxlQE x/ZRrlAI9ZYFVLrbFE1sL18TPOBHfnsv7rAbcmqGzNK6pwHXrQ1uIguzBPE7bPQmRZpX 3INKbbJZS1+0/au01S6hthw210uF96pAWX3nLg1JK5kK5lGcR36jhebYD4joAfoxZtkz 3c9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from; bh=KMBRZCRdzr1k0TtrRCVMo62So9vmp08FxsVx9S6v84Q=; b=ev2USCH1NojntvXT2pLPu3pbwLwWiKUQioiTXaXwiGCCBPyRJN58HPxeJbY9ccFUHm ge4AEdNuLNJIJIsf8yq9jJYg/ME3917/F/fqk/uCikY9mlNaVO+BnvffpkPPP5vNTPjC M/ALCws8pZ6axMNe9dCBujnnGSi1ss6zJ61hGTKrA80IeMPCwJv+/h9/1FO0+TC3VuLk XO0e0FhgjuIxUrfsll5KZh63T2iyhuECUwoPmp6Y5FR9sWBPqPRZjNcr7i9J5/tWNCyB VUxj4eNtM6L1K3q1cijgxAH79KcHFLHXi3aylkjwNSN4X6GafcxOalxdYB2R9nm6SR1c 8OTw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of devel-bounces@openvz.org designates 185.231.241.50 as permitted sender) smtp.mailfrom=devel-bounces@openvz.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Return-Path: <devel-bounces@openvz.org> Received: from mail.openvz.org (mail.openvz.org. [185.231.241.50]) by mx.google.com with ESMTPS id v20si1876769ljj.196.2019.10.30.03.34.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Oct 2019 03:34:30 -0700 (PDT) Received-SPF: pass (google.com: domain of devel-bounces@openvz.org designates 185.231.241.50 as permitted sender) client-ip=185.231.241.50; Authentication-Results: mx.google.com; spf=pass (google.com: domain of devel-bounces@openvz.org designates 185.231.241.50 as permitted sender) smtp.mailfrom=devel-bounces@openvz.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: from localhost.localdomain (localhost [127.0.0.1]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id x9UAWVuW020056; Wed, 30 Oct 2019 13:32:36 +0300 Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-am5eur03lp2051.outbound.protection.outlook.com [104.47.8.51]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id x9UAWQZU020050 for <devel@openvz.org>; Wed, 30 Oct 2019 13:32:26 +0300 Received: from DB6PR0801CA0046.eurprd08.prod.outlook.com (2603:10a6:4:2b::14) by AM0PR08MB4612.eurprd08.prod.outlook.com (2603:10a6:208:105::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2387.22; Wed, 30 Oct 2019 10:32:28 +0000 Received: from VE1EUR01FT040.eop-EUR01.prod.protection.outlook.com (2a01:111:f400:7e01::204) by DB6PR0801CA0046.outlook.office365.com (2603:10a6:4:2b::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2408.17 via Frontend Transport; Wed, 30 Oct 2019 10:32:28 +0000 Authentication-Results: spf=pass (sender IP is 185.231.240.75) smtp.mailfrom=virtuozzo.com; openvz.org; dkim=none (message not signed) header.d=none; openvz.org; dmarc=pass action=none header.from=virtuozzo.com; Received-SPF: Pass (protection.outlook.com: domain of virtuozzo.com designates 185.231.240.75 as permitted sender) receiver=protection.outlook.com; client-ip=185.231.240.75; helo=relay.sw.ru; Received: from relay.sw.ru (185.231.240.75) by VE1EUR01FT040.mail.protection.outlook.com (10.152.3.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2387.20 via Frontend Transport; Wed, 30 Oct 2019 10:32:28 +0000 Received: from [172.16.25.5] (helo=i7.sw.ru) by relay.sw.ru with esmtp (Exim 4.92.2) (envelope-from <aryabinin@virtuozzo.com>) id 1iPlH9-0004Gm-II; Wed, 30 Oct 2019 13:32:27 +0300 From: Andrey Ryabinin <aryabinin@virtuozzo.com> To: devel@openvz.org Date: Wed, 30 Oct 2019 13:32:08 +0300 Message-Id: <20191030103208.23828-2-aryabinin@virtuozzo.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191030103208.23828-1-aryabinin@virtuozzo.com> References: <20191030103208.23828-1-aryabinin@virtuozzo.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: SFV:SKI; SFV:SKN; SFS:; DIR:INB; SFP:; SCL:-1; SRVR:AM0PR08MB4612; H:relay.sw.ru; FPR:; SPF:None; LANG:en; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cfd123b2-a32d-4b29-21e2-08d75d247682 X-MS-TrafficTypeDiagnostic: AM0PR08MB4612: X-MS-Oob-TLC-OOBClassifiers: OLM:1051; X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?sUmTJiSqq+LbWccSWnaDv2cNG2FtmQ3vQLr3A1NuXgnILLc09+4rudgsKnxJ?= =?us-ascii?Q?uqL8DYjPalhWe/f2i+IJvb2NVywJMlfRHyHG0WT3BGK6dHhrv4zKsH3lWE5s?= =?us-ascii?Q?0dicYkXHDir811EA9Gy/81m8Qm6YgTnnqwLBpYXWHyPtO5VlVrGeDx5ceYQE?= =?us-ascii?Q?Lk2u7YZGMnBAihwZaJjYNDPkkUoANMlhErEGr4Kno5mXonhJY4t/OQnrrwUb?= =?us-ascii?Q?X9+b5c1QBYyf/xC/nv1cNeRvD0sJ+e3pxwGFgbPH/GEN+tfYxtfWEpGZ3yI8?= =?us-ascii?Q?x3pyvFaYlEekbsxfet/9vJw/N0ZGyoK20QkZAAzFf3jjrPur67P4nbQKCcVp?= =?us-ascii?Q?M1omZScLj3oflteG8jRInBKRPy6dQjY4xIaM5wssF0Eg+P8LX1qEg9x2Q7rY?= =?us-ascii?Q?Sipte8yal+pEOyWjq5gHlclgrVSavyYw6mnsxnCEXO3aFvdZYktuKsrZMgBC?= =?us-ascii?Q?W4VPAhbHyuXugYm1jVedOdWaGue8AVjMqG1pORd3U84K7PkypxOKe/8Se/ZT?= =?us-ascii?Q?dp+LiRr3NuqQPUzWydJy4EVjBE7pgnabWBx1xeTO5I7a3MUrmXygIfh7hBsl?= =?us-ascii?Q?Ps0ADu05PrI0npdOF16S3ZLZI4UHzJd2QPIhVZHIBklvGs2rrOiGzWRFpkIE?= =?us-ascii?Q?7yHI3/27cbSq5YSYiFsy3G3Mdw+8F78emGFoGSNXiMApg0xrquBvd5II14Jt?= =?us-ascii?Q?QhIMzDNsWCiPrTeAV7K/1xeUsYn0yoX5aGyAXsd8hDuH0WNpiIWovgW+uhuj?= =?us-ascii?Q?RT3vApvQ/03NSWMMs/2HGPSLVBv8BtRP/TZx5J//z/yexs7eMbuim9u0TnIn?= =?us-ascii?Q?O1sUC5euA/kThLJ+DqGaYbxev4nUmm+OvBTnwb/PLoHwtkBNIW+jKxkJbSRH?= =?us-ascii?Q?gVobS5VDpTQCUPIvj4XweTJy/n/3TrNmPnZOuxoob/iMFip2ZMRONp0cdg9H?= =?us-ascii?Q?gh2zwCnGi8aDtaQc78A1nZOxfKZ2N8PHGerWxJbItmZ/u/SHBbx/vwioCjzS?= =?us-ascii?Q?4jEQGXkoa8txN36rl6bbP+jQacXlhL+fDP421X7zNCfHnKIMH07xvM00IBUF?= =?us-ascii?Q?ULXZ0jh8tLz9BgVOU+sQS4YZUAVaw8+n6zca420L5n6NaaViEck=3D?= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Oct 2019 10:32:28.4630 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cfd123b2-a32d-4b29-21e2-08d75d247682 X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0bc7f26d-0264-416e-a6fc-8352af79c58f; Ip=[185.231.240.75]; Helo=[relay.sw.ru] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB4612 X-MS-Exchange-CrossPremises-OriginalClientIPAddress: 185.231.240.75 X-MS-Exchange-CrossPremises-SCL: -1 X-MS-Exchange-CrossPremises-AuthSource: VE1EUR01FT040.eop-EUR01.prod.protection.outlook.com X-MS-Exchange-CrossPremises-AuthAs: Anonymous X-MS-Exchange-CrossPremises-TransportTrafficType: Email X-MS-Exchange-CrossPremises-TransportTrafficSubType: X-MS-Exchange-CrossPremises-Antispam-ScanContext: DIR:Originating; SFV:SKN; SKIP:0; X-MS-Exchange-CrossPremises-Processed-By-Journaling: Journal Agent X-OrganizationHeadersPreserved: AM0PR08MB4612.eurprd08.prod.outlook.com Subject: [Devel] [PATCH rh7 2/2] block: fix leak of q->rq_wb X-BeenThere: devel@openvz.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: OpenVZ development <devel.openvz.org> List-Unsubscribe: <https://lists.openvz.org/mailman/options/devel>, <mailto:devel-request@openvz.org?subject=unsubscribe> List-Archive: <http://lists.openvz.org/pipermail/devel/> List-Post: <mailto:devel@openvz.org> List-Help: <mailto:devel-request@openvz.org?subject=help> List-Subscribe: <https://lists.openvz.org/mailman/listinfo/devel>, <mailto:devel-request@openvz.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: devel-bounces@openvz.org Errors-To: devel-bounces@openvz.org |
diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c index ed5c71a8e84f..7aebab0ced19 100644 --- a/block/blk-sysfs.c +++ b/block/blk-sysfs.c @@ -587,7 +587,6 @@ static void blk_release_queue(struct kobject *kobj) struct request_queue *q = container_of(kobj, struct request_queue, kobj); - wbt_exit(q); if (test_bit(QUEUE_FLAG_POLL_STATS, &q->queue_flags)) blk_stat_remove_callback(q, q->poll_cb); blk_stat_free_callback(q->poll_cb); @@ -753,6 +752,8 @@ void blk_unregister_queue(struct gendisk *disk) queue_flag_clear(QUEUE_FLAG_REGISTERED, q); spin_unlock_irq(q->queue_lock); + wbt_exit(q); + /* * Remove the sysfs attributes before unregistering the queue data * structures that can be modified through sysfs.