From patchwork Mon Dec 10 00:46:16 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: NeilBrown X-Patchwork-Id: 10720447 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 CE6AC1731 for ; Mon, 10 Dec 2018 00:47:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B66CF29D95 for ; Mon, 10 Dec 2018 00:47:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AA30229DA2; Mon, 10 Dec 2018 00:47:14 +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=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from pdx1-mailman02.dreamhost.com (pdx1-mailman02.dreamhost.com [64.90.62.194]) (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 6820929D95 for ; Mon, 10 Dec 2018 00:47:13 +0000 (UTC) Received: from pdx1-mailman02.dreamhost.com (localhost [IPv6:::1]) by pdx1-mailman02.dreamhost.com (Postfix) with ESMTP id CF6C221F587; Sun, 9 Dec 2018 16:47:12 -0800 (PST) X-Original-To: lustre-devel@lists.lustre.org Delivered-To: lustre-devel-lustre.org@pdx1-mailman02.dreamhost.com Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) by pdx1-mailman02.dreamhost.com (Postfix) with ESMTP id D7A7121F553 for ; Sun, 9 Dec 2018 16:47:10 -0800 (PST) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 543ABAEE9; Mon, 10 Dec 2018 00:47:09 +0000 (UTC) From: NeilBrown To: James Simmons , Oleg Drokin , Andreas Dilger Date: Mon, 10 Dec 2018 11:46:16 +1100 Message-ID: <154440246926.29887.1667505755325904791.stgit@noble> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Subject: [lustre-devel] [PATCH 0/4] some modest linux-lustre cleanups. X-BeenThere: lustre-devel@lists.lustre.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "For discussing Lustre software development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Lustre Development List Errors-To: lustre-devel-bounces@lists.lustre.org Sender: "lustre-devel" X-Virus-Scanned: ClamAV using ClamSMTP I've been looking at the dmesg output generated by the sanity test suite, and decided it was time to clean up the warnings, most related to lockdep. This is still one lockdep warning - that lli_trunc_sem and mmap_sem can deadlock. I think that is real, but that I'm going to need to understand a lot more code before I can fix it - starting with osc - hence the final patch here. I think the first patch (use-after-free) might be appropriate for OpenSFS too. These are all in my lustre-testing branch. Thanks, NeilBrown --- NeilBrown (4): lustre: lnet_startup_lndnet: avoid use-after-free lustre: use GFP_NOFS when lli_och_mutex is held - again lustre: use bit-locking in echo_client. lustre: clear up white space in osc header files. drivers/staging/lustre/lnet/lnet/api-ni.c | 6 drivers/staging/lustre/lustre/llite/file.c | 4 .../staging/lustre/lustre/obdecho/echo_client.c | 29 +- .../staging/lustre/lustre/osc/osc_cl_internal.h | 319 ++++++++++---------- drivers/staging/lustre/lustre/osc/osc_internal.h | 96 +++--- 5 files changed, 233 insertions(+), 221 deletions(-) -- Signature