From patchwork Fri Apr 9 19:51:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve French X-Patchwork-Id: 1464521 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=linux-cifs-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=gMAq5N1R; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4FH80P2DQfz9sVt for ; Sat, 10 Apr 2021 05:51:49 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233657AbhDITwB (ORCPT ); Fri, 9 Apr 2021 15:52:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232855AbhDITwB (ORCPT ); Fri, 9 Apr 2021 15:52:01 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7A3FC061762 for ; Fri, 9 Apr 2021 12:51:46 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id d12so11467357lfv.11 for ; Fri, 09 Apr 2021 12:51:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=g1JYMQkP+iUetgAEXoi7C25ENX+aX5fnfYabDjrNKXI=; b=gMAq5N1Rzjlffj0eESB0ju4G9ejSo067bxPX2ghwx5yvYmHiRld3Of/oGYxI75Hug/ FqUFHP9rhIgfsjnsekNyY1+2J7gp1ilx2S7LToiYEYjq2KQ10mxCsY+KsI1aKEgUt+xJ nZ+C3Kfspvi0omAViENtbYujtLJp15h2WSKk1hiB5/ayJ/qqsQB8IkAoeRGG3Bu015Hz NnbtnWhspiBhCwcW+Etk4YoDbv/W1S1CVzG1+Xw8u4gpWx/efejOnHFNcSB0vC5UffiA 65B9GBgVgfO+sw6lPDNFR7GWu4tJwJmsII+war7NptrgmbNVgn36xLzMaWl01l9nDzzo 7EFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=g1JYMQkP+iUetgAEXoi7C25ENX+aX5fnfYabDjrNKXI=; b=ru2pMQLIVtYYwsT4CfnMzffC1Hrek5Q9tMyAMXMpi8nIvgZtJU29ZaBXR/MxIPi+7a 3u4voFkxBRMTxxEhsFBNQ3b7AdsOF8laPi6kGzSK9MeMu49Owx/lyNsoJrmMvRxbpfFB cXCa6R4jFh5jAQ+8TeYgxx/rt/G1e9bK/z0SlUBlVVuUfkJ7774zqMEAw3acqj1T2RqQ ryGMkRuXZyOmkCeZJ2yBBcSV+VgWxR4qmDo/gtZIN3M+B8SZJE/lMugFY+kW0O0BSRSh 9Gzx61NtXkNP556fhzK/ZqAWODSVUOakjIS+ZjyNr0+XKupgB3hMFXYUWL66ynTp0hm5 4qUg== X-Gm-Message-State: AOAM530VFKG6n6AnOPUGCa52jcWo2zpEKheoq+HDJw0zhz1XqSKzTt+C SUjvyFqQnNt6uA6nAJ7DdJMXLGJYF4U9/ye3WiF+G+AxvyhnmQ== X-Google-Smtp-Source: ABdhPJx/hy/MFYEYkrE1N4gQfdFayKPtth6ESir0UeTb24iMm8Ixao6CFWihPIxA3jv0NbA7GJNBg2X0RLfaPzDpLJA= X-Received: by 2002:a05:6512:3ca0:: with SMTP id h32mr11481952lfv.184.1617997904826; Fri, 09 Apr 2021 12:51:44 -0700 (PDT) MIME-Version: 1.0 From: Steve French Date: Fri, 9 Apr 2021 14:51:34 -0500 Message-ID: Subject: [PATCH] cifs: correct comments explaining internal semaphore usage in the module To: CIFS Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org A few of the semaphores had been removed, and one additional one needed to be noted in the comments. (Additional updates to the semaphore/mutex/lock descriptions in the comments in cifsglob.h could be helpful to make sure they accurately reflect what protects what). Signed-off-by: Steve French --- fs/cifs/cifsglob.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index f84a839224ae..6cc54a1d4336 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h @@ -1792,9 +1792,8 @@ require use of the stronger protocol */ * * Semaphores * ---------- - * sesSem operations on smb session - * tconSem operations on tree connection - * fh_sem file handle reconnection operations + * cifsInodeInfo->lock_sem protects: + * the list of locks held by the inode * ****************************************************************************/