From patchwork Tue Aug 9 14:40:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Dryomov X-Patchwork-Id: 9271435 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E38F660839 for ; Tue, 9 Aug 2016 14:52:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D6473283DF for ; Tue, 9 Aug 2016 14:52:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CAEF9283F2; Tue, 9 Aug 2016 14:52:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 77A57283DF for ; Tue, 9 Aug 2016 14:52:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932597AbcHIOwE (ORCPT ); Tue, 9 Aug 2016 10:52:04 -0400 Received: from mail-yb0-f193.google.com ([209.85.213.193]:33788 "EHLO mail-yb0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752871AbcHIOwB (ORCPT ); Tue, 9 Aug 2016 10:52:01 -0400 X-Greylist: delayed 692 seconds by postgrey-1.27 at vger.kernel.org; Tue, 09 Aug 2016 10:52:01 EDT Received: by mail-yb0-f193.google.com with SMTP id e125so337691ybc.0 for ; Tue, 09 Aug 2016 07:52:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=NupT8hhiSNh1yFOt2aQRBdjWpAvHx4oEj7hbsDaCQJY=; b=XD3nyBxRalms1ULj7AGO7VUCuS+GzTKQwkCBJKhIdeBapA7K+TfA1MJHni8P+QUshp Wr58KF3osUJgSM4jgf6XpCuJuEKlbuoZm32Zv9R26tzyEn4tx0CWzKfBBXMhqXOs52X4 wkX+mscRQdWGKcUneyL/PRasmjHktE4KIIpmtrb+lCRkhDcumxZGB1G4x31Qa7OMlY41 cRpPM3OzKUMv2Gr4J9VsZTPiAYcvgP+DrUwBNf1j8EriSpyeSUDZnAm+Rw5AY+Ja40p7 /cEojfWDbzg/fyzr8txaZCpcrZRpNSl1cDk+/PcTI7mvxt4aUXghZCbAcG7ISVDvlYdW rdvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=NupT8hhiSNh1yFOt2aQRBdjWpAvHx4oEj7hbsDaCQJY=; b=cieGuHGod/6f/z/POE3Ie3CMDhFG0801cW7kmFxwG3+G+SYcavMfN9KeUsdctXNU0O 360ir9Z3dTTceefMRhItlGXgd9HDs1YIYILUq69u9VuIaR5Yjb2zxMvAB9Kv5+siQZAM 24yuYSKK6uDSipZwV4Hpd6dAtOGo1G8qU2tj+mpw1icJNnpoqHf06ZVc3W7dbak5+aiD A8vPqjfIiFSd50VaIywj9vK18KhivhUJ0v+FayMp1UfOczJ39yEBC7ZFT5FzP4wxqsIG eCytjVEsaixJD+sLYu8fK5Xy5ds0lgnKG2LYzdg2nT0ZErqzCU6z1ec0wNMZcxFzMSmf VK8Q== X-Gm-Message-State: AEkoous/xdEWviEhPpsWsty3qm5skITu2gxP9M4m99/Cz63DKv2w82Qo4zHJapxYbbLsVg== X-Received: by 10.37.218.134 with SMTP id n128mr22336026ybf.125.1470753628740; Tue, 09 Aug 2016 07:40:28 -0700 (PDT) Received: from dhcp-1-133.brq.redhat.com (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id e190sm16212369ywh.6.2016.08.09.07.40.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Aug 2016 07:40:28 -0700 (PDT) From: Ilya Dryomov To: ceph-devel@vger.kernel.org Subject: [PATCH] rbd: destroy header_oloc in rbd_dev_release() Date: Tue, 9 Aug 2016 16:40:13 +0200 Message-Id: <1470753613-5365-1-git-send-email-idryomov@gmail.com> X-Mailer: git-send-email 2.4.3 Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Purely cosmetic at this point, as rbd doesn't use RADOS namespaces and hence rbd_dev->header_oloc->pool_ns is always NULL. Signed-off-by: Ilya Dryomov --- drivers/block/rbd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index 1a04af6d2421..07668a6f0607 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c @@ -3950,6 +3950,7 @@ static void rbd_dev_release(struct device *dev) bool need_put = !!rbd_dev->opts; ceph_oid_destroy(&rbd_dev->header_oid); + ceph_oloc_destroy(&rbd_dev->header_oloc); rbd_put_client(rbd_dev->rbd_client); rbd_spec_put(rbd_dev->spec);