From patchwork Tue May 12 18:17:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabian Frederick X-Patchwork-Id: 11543729 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3EC05139F for ; Tue, 12 May 2020 18:17:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 278FA20714 for ; Tue, 12 May 2020 18:17:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729271AbgELSRr (ORCPT ); Tue, 12 May 2020 14:17:47 -0400 Received: from mailrelay115.isp.belgacom.be ([195.238.20.142]:26549 "EHLO mailrelay115.isp.belgacom.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726300AbgELSRr (ORCPT ); Tue, 12 May 2020 14:17:47 -0400 IronPort-SDR: ROQLGba36rQBfJwvHnvLW47/ccwB3RyK0+20xl7Syr62SWeufBQz9H5aAjyjjd+g8AIuVFv6Ug 4xB05T8YRMoKspb+NuuggNiEOSd+iNKn1EVn0fKi15OXngDCYAfU2xqtePh8GkOjF/6Yxfea4u vx+mQE9C31MbX7AZQ1Jo5mAHPHM5B3FHzSRQSgzCaAIqkgjOI3mD2NUN0Zvrtkyr/gazsPrpWq p3KXfEqmV9St4rNAz8KLbmHseldkf2GTxF4HUIxmYbLfZLgznYQiRj+5fl1ziGY8x8IvY7bUti KnQ= X-Belgacom-Dynamic: yes IronPort-PHdr: 9a23:RM4YBBZjAr2OFv2eF90WIN3/LSx+4OfEezUN459isYplN5qZrsiybnLW6fgltlLVR4KTs6sC17OL9fG6EjVZsd6oizMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpTEdFQ/iOgVrO+/7BpDdj9it1+C15pbffxh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WUqVcN6DRn69QcSgDC13RN9nkIxGWFp0B9j31kOL5CGtGbJAz7E= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2BKBwAE57pe/xCltltmhHqBZBIsjSWFfIwYkVgLAQEBAQEBAQEBNAECBAEBhESCBCc4EwIDAQEBAwIFAQEGAQEBAQEBBAQBbAQBAQcKAgGETiEBAwEBBQoBQ4I7IoNCCwEjI09wEoMmglgpsT0zhVGDV4FAgTiHXYUBgUE/hF+KQgSya4JUgnGVKwwdnTqQHZ87IoFWTSAYgyRQGA2fCkIwNwIGCAEBAwlXASIBjggBAQ X-IPAS-Result: A2BKBwAE57pe/xCltltmhHqBZBIsjSWFfIwYkVgLAQEBAQEBAQEBNAECBAEBhESCBCc4EwIDAQEBAwIFAQEGAQEBAQEBBAQBbAQBAQcKAgGETiEBAwEBBQoBQ4I7IoNCCwEjI09wEoMmglgpsT0zhVGDV4FAgTiHXYUBgUE/hF+KQgSya4JUgnGVKwwdnTqQHZ87IoFWTSAYgyRQGA2fCkIwNwIGCAEBAwlXASIBjggBAQ Received: from 16.165-182-91.adsl-dyn.isp.belgacom.be (HELO biggussolus.home) ([91.182.165.16]) by relay.skynet.be with ESMTP; 12 May 2020 20:17:45 +0200 From: Fabian Frederick To: jack@suse.cz, amir73il@gmail.com Cc: linux-fsdevel@vger.kernel.org, Fabian Frederick Subject: [PATCH V2 2/6 linux-next] notify: explicit shutdown initialization Date: Tue, 12 May 2020 20:17:40 +0200 Message-Id: <20200512181740.405774-1-fabf@skynet.be> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org kzalloc should already do it but explicitly initialize group shutdown variable to false. Signed-off-by: Fabian Frederick --- fs/notify/group.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/notify/group.c b/fs/notify/group.c index 133f723aca07..f2cba2265061 100644 --- a/fs/notify/group.c +++ b/fs/notify/group.c @@ -130,6 +130,7 @@ struct fsnotify_group *fsnotify_alloc_group(const struct fsnotify_ops *ops) INIT_LIST_HEAD(&group->notification_list); init_waitqueue_head(&group->notification_waitq); group->max_events = UINT_MAX; + group->shutdown = false; mutex_init(&group->mark_mutex); INIT_LIST_HEAD(&group->marks_list);