From patchwork Mon Aug 5 16:03:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Senozhatsky X-Patchwork-Id: 11077251 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ECDA61398 for ; Mon, 5 Aug 2019 16:03:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D8F3F2094F for ; Mon, 5 Aug 2019 16:03:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C8A5328711; Mon, 5 Aug 2019 16:03:19 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8DCF82094F for ; Mon, 5 Aug 2019 16:03:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 350F76E4BA; Mon, 5 Aug 2019 16:03:17 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by gabe.freedesktop.org (Postfix) with ESMTPS id 988056E4BA; Mon, 5 Aug 2019 16:03:16 +0000 (UTC) Received: by mail-pf1-x442.google.com with SMTP id c3so16739371pfa.13; Mon, 05 Aug 2019 09:03:16 -0700 (PDT) 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:mime-version :content-transfer-encoding; bh=7x08fTlAtcnJHaKw1+e2ULk6svbbNjTrbJD6jGnKHoU=; b=LJd2Cou+AmCS9IGGEn9HFqc5ZUuYs0I2gPlJ5ebO0484DYlGnjCzhhLuJgOlb2L3xR vSlGtF2Qe0ZgJCboi1893QemPG348jna7MzsoXqpoCXKXw/cXJBiNINeT/740loMY0fo XIBrepSKchAtIyEGvL/YlQV+MGp/PvX/RWiLpPEq1meYI5jT4ooHz/4bWVZoV95s01N/ Cy+dSmL5h5F+ePD0p9M7yLHlKB4pQH4hNqX6pYl0KCpkTjI/399ars7LARfWghrZVMnC HFQG+1NRJnFgQ2uNYFh6iP3w+Nx/1i4mTEGHq9spzQ6JfHpglg4WndvsfOpzyW/yVheF yDDQ== X-Gm-Message-State: APjAAAXJD7fJUq/PUvPWkSSpTlkgf+o5PKVtB5y91Cs/hUhkuU6a7068 CVGwR+EQ+Gixts/4ysgw9aI= X-Google-Smtp-Source: APXvYqwlHzkEPNzjitM9BToseCozyRr+rvToOJ8jvZ3PWs8FMHpCuKXerfW7x1RWyGNI8w806urviA== X-Received: by 2002:a17:90b:d8f:: with SMTP id bg15mr18692229pjb.65.1565020996027; Mon, 05 Aug 2019 09:03:16 -0700 (PDT) Received: from localhost.localdomain ([121.137.63.184]) by smtp.gmail.com with ESMTPSA id n98sm17061262pjc.26.2019.08.05.09.03.11 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 05 Aug 2019 09:03:15 -0700 (PDT) From: Sergey Senozhatsky To: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Chris Wilson , Alexander Viro , David Howells , Christoph Hellwig Subject: [PATCHv2 0/3] convert i915 to new mount API Date: Tue, 6 Aug 2019 01:03:04 +0900 Message-Id: <20190805160307.5418-1-sergey.senozhatsky@gmail.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7x08fTlAtcnJHaKw1+e2ULk6svbbNjTrbJD6jGnKHoU=; b=LXIe/by2g8kAwhGpudayPYt5k4zTt+DTH7eiJZJUVf2itRT6HQq4sn4Ws3xaPHxVRD xv7xHYX47Okgaw/wFYmtEptJBEoLWieQBcyqgIIJaa1D2ZDdLPXJcYaM4jLrJb/ZV+RH L7rARzY6mu2H7isDPRKcCQdsj6qwz3EQS9zkFNx9jzV4DlNETmF5nYwv2ex4Rd+tybu9 d5n7+iZJhlfDD3c9IN8ovsJgXXBzRqYCgszYSKQHqy2lUEiWy0WNOTQBsBtXA7igWoeG kYhvQcOQlOdvTtmJV5l2qLr8ZyP/ioVuDaWoCK7X3o/PvNE//bSDgGgZa92yiUi4OUko sqNw== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Sergey Senozhatsky , linux-fsdevel@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Hello, Convert i915 to a new mount API and fix i915_gemfs_init() kernel Oops. It also appears that we need to EXPORTs put_filesystem(), so i915 can properly put filesystem after it is done with kern_mount(). v2: - export put_filesystem() [Chris] - always put_filesystem() in i915_gemfs_init() [Chris] - improve i915_gemfs_init() error message [Chris] Sergey Senozhatsky (3): fs: export put_filesystem() i915: convert to new mount API i915: do not leak module ref counter drivers/gpu/drm/i915/gem/i915_gemfs.c | 33 +++++++++++++++++++-------- fs/filesystems.c | 1 + 2 files changed, 25 insertions(+), 9 deletions(-) Reported-by: Sedat Dilek