Received: by 10.223.164.202 with SMTP id h10csp2973032wrb; Fri, 24 Nov 2017 22:43:10 -0800 (PST) X-Google-Smtp-Source: AGs4zMbLWMUD1AvX9IDMlrsZOPQQ5CPMpvYW8M1DKEvx4TJoznpwlEbPoyuGvOK9M5WD7g038tkZ X-Received: by 10.84.128.197 with SMTP id a63mr32026274pla.340.1511592190295; Fri, 24 Nov 2017 22:43:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511592190; cv=none; d=google.com; s=arc-20160816; b=aL7BHcWpIHZWWShIwq/drtLZbgHAtO4FrIu8XV6S+cXd1GgtNjMS36/8oFllnB7YAb 1pMYEPzrxuW9CJgiUiFZQrdLDPUcsqc8wi3kb+vFxfedXHUzfIppUQe+Id4hCN0tP5f+ 5QuuxwAgFaly7SIMFEhUQTuGEGcs9hHVLQ4jPECnzJCqV28+1tHoJ/fp7ydqyBCNpbVv MuEzXKlr7JU5emHpvE1Lf27Z6V3IKGqBgy6QX1GBCUHqy+W/9Y/rdv1Cv6vFe/A79K7D riwnZvxw/nDzLJv2+0IoxAOM4wsuWyICwtPwC3flkUkEqsopf5GjOB2lYIYiJcyI1GR6 /sNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=8vRmYXbL+Y/75HaeMT8X2jiU/1xIBKSbNIp+7PxN75E=; b=K//F0QYwmhivDtdz6uhiwdg1loUQHf2zoN/BQu7wE2Ttv+RtoPnEAMTiJOrM75dEev 5Evev9wOHDepTQrx8SwoOkPmC696MyQB+aeMbZ8VuAJkqNYHsq6FZLHJBJG1CB1fG+6x 6TStAAZZgcQQLHsc89MLfeAsa9WInaXF2stBKa/Ni5gSHEVsGsdRczKx4ss0bmdXcKgb mnS3TkPJRsZ6S7bsAfCOnXvXSTXj0PauzzIVLyjGfIlH7hbO6Pg7j2FwB96PRb7fdc2+ bArQgxKytmI/L4ba/inN3DXiSueqKTba83Sj//v5+JiOmNy/MA7NgfoCBF3o0gCNzzmr WMIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=k2OafJVh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k3si19581639pld.688.2017.11.24.22.42.58; Fri, 24 Nov 2017 22:43:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=k2OafJVh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751501AbdKYGj7 (ORCPT + 78 others); Sat, 25 Nov 2017 01:39:59 -0500 Received: from mail-pl0-f68.google.com ([209.85.160.68]:37641 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751018AbdKYGj4 (ORCPT ); Sat, 25 Nov 2017 01:39:56 -0500 Received: by mail-pl0-f68.google.com with SMTP id 61so5522424plf.4; Fri, 24 Nov 2017 22:39:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8vRmYXbL+Y/75HaeMT8X2jiU/1xIBKSbNIp+7PxN75E=; b=k2OafJVhKaslBZZITH4/yR88AvqE/fePVfeWNrbPfBliBzAexAH5ttc5/O02L5NZLD wDKday0UQawPEVkRWeYIN6891+aV8sBTSq5CLZL5ysX9T4+WjcXyJjIyRO5J1pAUf0kd rA+rXQYmjCLpCgc+c87JF742iLwyBS5n/fPto5tY2Uf2BPyFBmMa8QGSWldSkyJLBAhM DbdxteCl5CHyCNVqHIADKjePYG73hEL1SPU7ith0iBBzXzKO5eVd+qtjNZjFFBxYXiF4 ffDq5dGjcKBCPwJDfTYId62EJfl3I/mJJH4UnOLUTnB3Yt3WvE6qk2301qxliBkvrs/k VnNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=8vRmYXbL+Y/75HaeMT8X2jiU/1xIBKSbNIp+7PxN75E=; b=qslv+xJtYfabCK/ptzK5kP14G93N/Q1nRg5H8UiauRtQBja+d8UNGX1SXH5QIl2SKp My5HHaU6g284OWB6AqYXU2U9tKsFMmb068vTI37mSR1O/ewWKn1NKrm4n3+nabL/5QWk 5+HCwtu3MN0r4psoScUMlIarIF/HXWVzQ0TeItJXWbEtFAyvJQN10OFu3f/6Xp67jp4C c5w3HljwNhXD+H1wKbZAJB80W/pwqbyiMJk7qWdQY/kEWLgt7eVEAAcEtGPpkjPZKUFg HjEuaonLk6mUb6qKzGk6cBj95ZZaK2FPLOSdLKS5gtOLWpkvwH7A9s4GHos4f0LRn95+ rfuA== X-Gm-Message-State: AJaThX56W58Bbsgzl2aHSM8Qd5unUlbBgMy7iNqXgqkJZ6yQ90Ka7dsS AGx14fDxE4jr6jyd9dtr7gk= X-Received: by 10.84.168.132 with SMTP id f4mr31725597plb.234.1511591995924; Fri, 24 Nov 2017 22:39:55 -0800 (PST) Received: from localhost.localdomain ([103.16.68.147]) by smtp.gmail.com with ESMTPSA id 62sm34027939pgh.31.2017.11.24.22.39.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Nov 2017 22:39:55 -0800 (PST) From: Arvind Yadav To: gilad@benyossef.com, gregkh@linuxfoundation.org, oleg.drokin@intel.com, andreas.dilger@intel.com, jsimmons@infradead.org, paulmck@linux.vnet.ibm.com, vitaly_fertman@xyratex.com, yawei.niu@intel.com Cc: linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org, lustre-devel@lists.lustre.org Subject: [PATCH 2/4] staging: lustre: ldlm: Remove a attribute group from a kobject Date: Sat, 25 Nov 2017 12:09:29 +0530 Message-Id: <1511591971-8615-3-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511591971-8615-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1511591971-8615-1-git-send-email-arvind.yadav.cs@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org All attribute group created during ldlm_setup() should be removed in ldlm_cleanup(). Signed-off-by: Arvind Yadav --- drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c b/drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c index 2d5a2c9..ada50b6 100644 --- a/drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c +++ b/drivers/staging/lustre/lustre/ldlm/ldlm_lockd.c @@ -1093,8 +1093,10 @@ static int ldlm_cleanup(void) kset_unregister(ldlm_ns_kset); if (ldlm_svc_kset) kset_unregister(ldlm_svc_kset); - if (ldlm_kobj) + if (ldlm_kobj) { + sysfs_remove_group(ldlm_kobj, &ldlm_attr_group); kobject_put(ldlm_kobj); + } ldlm_debugfs_cleanup(); -- 2.7.4 From 1585198666183322252@xxx Mon Nov 27 06:14:14 +0000 2017 X-GM-THRID: 1585198666183322252 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread