Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp5981442rwb; Tue, 9 Aug 2022 07:18:06 -0700 (PDT) X-Google-Smtp-Source: AA6agR4iV0KxLEsc1y/4/qLxeSEE7ZO5M0Pl7WXwsutRDOofHa5Mc8tSFpqIc6QMsKvlF9SidnOA X-Received: by 2002:a17:902:ebcb:b0:168:e3ba:4b5a with SMTP id p11-20020a170902ebcb00b00168e3ba4b5amr23643810plg.11.1660054686646; Tue, 09 Aug 2022 07:18:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660054686; cv=none; d=google.com; s=arc-20160816; b=Wvix+I5+jQmpJZO5o8DY5L245gYkyh82GNCJTC8FxhucMsgTbOIGAf75quAkIN7nbX 09VRxwp6buK9vCIVfMMWeUBEV7mutHb/QYjyps0xOF/IyrTQZzKxzwNqJ2kMe4SobnrT rJFN7hXbKZz1h8dPm2LNVrJCqUv9twkkZMHyqWKqFlzNWeO+DGEJJmAcuA+JkJqQ6nhs kJQL1UdOVZvrmS/95CILLun1ZdqatYtf+yrQUi3yGiOo2EhOpvsvKx0LW9s0InODtNmR 8hZuAGc/fNmOQUF1HXIGzRLtmk2VdoNB9yYqeWagzQ0oOlPN46ny6IdecJ6hcBzNKo33 M9WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=ssKIxzC2ShU+SldXTFLlZ+Dl4JtHvn5shdrgSl9CPWU=; b=ysFA5Rl7sxj7OGoXZ6AXUHkQJ0dVvBckvqBKA/b7Lzyd3oKKF2wdqGlweBtAWS4VOj x8j2A5F77eJZNanico2otulq9nvx01NMAbooWJDCoR+tjm7nub7WB9uIL2jXFqoMaVzm Z0ZAvzxnljLfC34AgHvWowa3bwr9YdrP/iSoXUyDNHljZYx76sd0OWdDX+jBATYSw2mc ixX7JGPA70kx7bxTOSju0COwG40aAixpswkmRpBx74Kj+KoVzcjWxlcYcZb7D/rPJKna 8LvchVKw3LGY00i84/LQFVkvHLKpso1IIDu6J8G2LVgccqdtOIVVsqeHtXm6C3XwzuWV IOVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=YIkdsG6U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 193-20020a6302ca000000b0041ccd92214bsi3573344pgc.409.2022.08.09.07.17.52; Tue, 09 Aug 2022 07:18:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sberdevices.ru header.s=mail header.b=YIkdsG6U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=sberdevices.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237830AbiHINGg (ORCPT + 99 others); Tue, 9 Aug 2022 09:06:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229653AbiHINGd (ORCPT ); Tue, 9 Aug 2022 09:06:33 -0400 Received: from mail.sberdevices.ru (mail.sberdevices.ru [45.89.227.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E2036301; Tue, 9 Aug 2022 06:06:30 -0700 (PDT) Received: from s-lin-edge02.sberdevices.ru (localhost [127.0.0.1]) by mail.sberdevices.ru (Postfix) with ESMTP id AC0675FD04; Tue, 9 Aug 2022 16:06:27 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sberdevices.ru; s=mail; t=1660050387; bh=ssKIxzC2ShU+SldXTFLlZ+Dl4JtHvn5shdrgSl9CPWU=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=YIkdsG6Uo+IvPRMcbEF06rySeQtKa8HrH0sSVjoP+r4iN9dZOgPXF9g9+TDysF47W D3joVgxDEmGTSe39ymnYUZQJeRut9xMv+2oZenwoNT27amlZs/VoXOyx+RXYcYvQyj GgV50iRCR5JYVOhFw/eEEwf4obOs+Kr+ZigRgC2jDmSkOw/9S/0fPSgNo3qRlzUv8V I8T8sWgA+5fIA1Q65zGRply8Eo+WbTsP2NhjdslAukMOc7i0nep7I6toL+tBiIZ+Fq Tbz26HSAaLsNpsPO3HM0BlBDqKRhOkSVUPWQbeJfOaFWSNUO8BhWL/BaVnBr2pAD64 Sdv8i5fTw+Nxw== Received: from S-MS-EXCH01.sberdevices.ru (S-MS-EXCH01.sberdevices.ru [172.16.1.4]) by mail.sberdevices.ru (Postfix) with ESMTP; Tue, 9 Aug 2022 16:06:26 +0300 (MSK) From: Aleksey Romanov To: Sergey Senozhatsky , "minchan@kernel.org" CC: "akpm@linux-foundation.org" , "ngupta@vflare.org" , "linux-block@vger.kernel.org" , "axboe@chromium.org" , kernel , "linux-kernel@vger.kernel.org" , "mnitenko@gmail.com" , Dmitry Rokosov Subject: Re: [PATCH v5] zram: remove double compression logic Thread-Topic: [PATCH v5] zram: remove double compression logic Thread-Index: AQHYYGSpGpTThyrzfUuEhSUG0yum7a2m55QAgAAG+YA= Date: Tue, 9 Aug 2022 13:06:19 +0000 Message-ID: <20220809130543.4dnh5aa3kdxbmzje@cab-wsm-0029881.sigma.sbrf.ru> References: <20220505094443.11728-1-avromanov@sberdevices.ru> In-Reply-To: Accept-Language: ru-RU, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.16.1.12] Content-Type: text/plain; charset="us-ascii" Content-ID: <38CDFADF862CFF44A37B5B0A2247FDE0@sberdevices.ru> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-KSMG-Rule-ID: 4 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Status: not scanned, disabled by settings X-KSMG-AntiSpam-Interceptor-Info: not scanned X-KSMG-AntiPhishing: not scanned, disabled by settings X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 1.1.2.30, bases: 2022/08/09 10:46:00 #20084579 X-KSMG-AntiVirus-Status: Clean, skipped X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sergey, On Tue, Aug 09, 2022 at 09:41:22PM +0900, Sergey Senozhatsky wrote: > On (22/05/05 12:44), Alexey Romanov wrote: > > @@ -1975,7 +1954,6 @@ static int zram_add(void) > > if (ZRAM_LOGICAL_BLOCK_SIZE =3D=3D PAGE_SIZE) > > blk_queue_max_write_zeroes_sectors(zram->disk->queue, UINT_MAX); > > =20 > > - blk_queue_flag_set(QUEUE_FLAG_STABLE_WRITES, zram->disk->queue); >=20 > By the way, why did it remove QUEUE_FLAG_STABLE_WRITES bit? Minchan asked me to add this change and this description: "Since b09ab054b69b, zram has used QUEUE_FLAG_STABLE_WRITES to prevent buffer change between 1st and 2nd memory allocations. Since we remove second trial memory allocation logic, we could remove the STABLE_WRITES flag because there is no change buffer to be modified under us" This seems to be logical. --=20 Thank you, Alexey=