Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp555074ybt; Wed, 8 Jul 2020 06:24:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3oxDhjzqi5OowMUzS4E9O4fYXODJ8R3/mcWd4GKLh0JKkpcDacBdTChw69zfgjPS92dHV X-Received: by 2002:a17:907:a92:: with SMTP id by18mr54469568ejc.116.1594214685241; Wed, 08 Jul 2020 06:24:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594214685; cv=none; d=google.com; s=arc-20160816; b=CQgpHI3qHd0YQybHU6P+PLWjOcLjmnWW9K6qrdeh1rJ3SH4fWIgs+At4rQ8AeNRKjg rAPUJBLta5jHLC6k5tFDI9wXmNfFJYS2G24ATYxVvSytMhAkwXaU4nFj1zQ2/457/Zr6 uvajFh7bRmVE9A9a+qbDdvkjy0zQLkk7e+aOnghHRnhYyJJ3Oc1uaCy6oR9gDn/kUGz2 qiAQPeuDQEUWrc11REatzbTBZf7nQ0ieBwDLCJWoLPDPNMOImzhYDTfpmSqfr6TIgDWw W3hqw/nBVf3AQNyrFjoDpHn89BB5gDjV2EAoH4mGqE+ADRozQmvyxywEdGmsiuwymI0Q 37Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=HT9m1pk/EAVzwaGTQ9UzlYOIqA609qRjOg25uqmFgtE=; b=J5ALWYr4bduBMPsXwMGwUBcyUdFghNDEjiIHQXw3QVhDwvzLqMFMioqZFyRS0rKI5e 1bsjCk2uBx6kp7p74A8hmrEdNz5mkOHGdJNAoPBxXtDxYPk+GtPfc6m1q8lmrPXfoTpG H9C96uhV5O4a5mtcTjNEfhtJyzHAJKLGLt6McWRoKDFmNr7J8164ixqvKx8srHDnfdJn kMGb0ltpJRLacrF/6mAWhoYOaCU9x3JOKuhXGn+anvG3GnVeyy6XbySEuzKidK9GzrzR XBrYq0PoKRfzR1rf/VKgpqWDwhyFos3+WGa4n8RilsObvKG42mi2UqcvtJaXtWUsEWea PtuQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o9si17392563edr.292.2020.07.08.06.24.22; Wed, 08 Jul 2020 06:24:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729436AbgGHNXc (ORCPT + 99 others); Wed, 8 Jul 2020 09:23:32 -0400 Received: from verein.lst.de ([213.95.11.211]:35346 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729251AbgGHNXb (ORCPT ); Wed, 8 Jul 2020 09:23:31 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id B2F6D68AFE; Wed, 8 Jul 2020 15:23:28 +0200 (CEST) Date: Wed, 8 Jul 2020 15:23:28 +0200 From: Christoph Hellwig To: Guoqing Jiang Cc: Christoph Hellwig , Jens Axboe , Song Liu , Ulf Hansson , linux-kernel@vger.kernel.org, linux-xtensa@linux-xtensa.org, linux-block@vger.kernel.org, linux-raid@vger.kernel.org, linux-mmc@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH 1/6] md: switch to ->check_events for media change notifications Message-ID: <20200708132328.GA21223@lst.de> References: <20200708122546.214579-1-hch@lst.de> <20200708122546.214579-2-hch@lst.de> <09cd4827-52ae-0e7c-c3d3-e9a6cd27ff2b@cloud.ionos.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <09cd4827-52ae-0e7c-c3d3-e9a6cd27ff2b@cloud.ionos.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 08, 2020 at 03:17:31PM +0200, Guoqing Jiang wrote: > On 7/8/20 2:25 PM, Christoph Hellwig wrote: >> -static int md_media_changed(struct gendisk *disk) >> -{ >> - struct mddev *mddev = disk->private_data; >> - >> - return mddev->changed; >> -} > > Maybe we can remove "changed" from struct mddev since no one reads it > after the change. The new md_check_events method reads it.