From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B03F8C2D0E4 for ; Thu, 12 Nov 2020 19:25:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 72DBF21D7F for ; Thu, 12 Nov 2020 19:25:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726875AbgKLTZn (ORCPT ); Thu, 12 Nov 2020 14:25:43 -0500 Received: from mx2.suse.de ([195.135.220.15]:41434 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726865AbgKLTZn (ORCPT ); Thu, 12 Nov 2020 14:25:43 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 9C35BAB95; Thu, 12 Nov 2020 19:25:42 +0000 (UTC) Date: Thu, 12 Nov 2020 20:25:40 +0100 From: Petr Vorel To: Christoph Hellwig Cc: Jens Axboe , Martijn Coenen , linux-block@vger.kernel.org, ltp@lists.linux.it Subject: Re: [PATCH 2/2] loop: Fix occasional uevent drop Message-ID: <20201112192540.GB14767@pevik> Reply-To: Petr Vorel References: <20201112165005.4022502-1-hch@lst.de> <20201112165005.4022502-3-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201112165005.4022502-3-hch@lst.de> Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org Hi Christoph, > From: Petr Vorel Thanks for rebasing my code. Using loop.c specific code in the file instead of the function is indeed much better. I also like your cleanup for 5.11 (remove the update_bdev parameter from set_capacity_revalidate_and_notify). > Commit 716ad0986cbd ("loop: Switch to set_capacity_revalidate_and_notify") > causes an occasional drop of loop device uevent, which are no longer > triggered in loop_set_size() but in a different part of code. > Bug is reproducible with LTP test uevent01 [1]: > i=0; while true; do > i=$((i+1)); echo "== $i ==" > lsmod |grep -q loop && rmmod -f loop > ./uevent01 || break > done > Put back triggering through code called in loop_set_size(). > Fix required to add yet another parameter to > set_capacity_revalidate_and_notify(). This ^ is no longer true and should be removed. Kind regards, Petr