From patchwork Thu May 9 04:37:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve French X-Patchwork-Id: 1097328 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-cifs-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="gFRQsnGg"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 4500tw37Jqz9s55 for ; Thu, 9 May 2019 14:37:28 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725908AbfEIEh1 (ORCPT ); Thu, 9 May 2019 00:37:27 -0400 Received: from mail-pf1-f179.google.com ([209.85.210.179]:44253 "EHLO mail-pf1-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725892AbfEIEh1 (ORCPT ); Thu, 9 May 2019 00:37:27 -0400 Received: by mail-pf1-f179.google.com with SMTP id g9so593205pfo.11 for ; Wed, 08 May 2019 21:37:27 -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:cc; bh=diAdZ54Z6L91gN8pxCLk4ZF12brlkm64ieBPXxkRE7M=; b=gFRQsnGgEWNUo+ZjuVEzmIGfZnV6y2dCZorUH8AfzoXbXhcT8zWlgHT1DubiJ3W7RU wVQDOnna2o9j5IoT7HRlLWEWZAyGpeeC9aIw/CW3d8BNRnThZ63wktFW3HKFB/WTGTZv 6isWBbvK4Odb+843qufkZAImUXCfSAWIQxeAQDQ6a4nQByD0WBn3IRND+nns/Sj4OiVb iM2BVpujw8eTccqYSvaunVQZ/C2oWMJtPeHLpSflK37Lg829RgIYtxvuGw8UhgeGCPPL x4MHoWjeuKM0ijGSGBzHhgJHYHtV6B9vVH7z0D/tihKYKbAyH6GWLZN7fCKv/sjVxihe bWuw== 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:cc; bh=diAdZ54Z6L91gN8pxCLk4ZF12brlkm64ieBPXxkRE7M=; b=jZJgTQFxBL/tHHzF3VX2+xn2krp9E8603GQGrxEIwMC8XKUhMUphRVBK2gNkshSr9T Ew8U8B0glFZFm93OMNoaJTNUK71KaiKZBTeVa1V3jBriMC3VDYxeajo9AT/RAyZGdZ95 Pcti6zaGjSB1/4sTI/ezI9Avf+hjmW2mPWkY1+mjirbtuRYAPXTF46ZIntf0qMDicJmM IFUl9stkqJ3tPrSA0ZmvVA9d6woSPSneYixWMWmJ6loQYatMV6vwWUBcEoUK5bCtaVUn w3jzXR+VCQw1J4c+wiwYSW3Wyyxk2Rf0+i/v2K+311eaN/gScBpQ7+PWRpjQYdKdajDu Of8w== X-Gm-Message-State: APjAAAWBMSAZCRTVzkPit0zMGJcvFizcPijzcVlbIPX5ffV0EZv+N+dJ 5H5heJp2lBoobsyNQvxr1umn9RTgnDmjq50b/TwIbg== X-Google-Smtp-Source: APXvYqwzfWO+Sx3BzG9Of84K1oDceQcT5zB4JQzRzOENIFKK3ZIrPnZInfA8iAXFsR3dzzj32qARPV460bIRH4RzKKk= X-Received: by 2002:a63:f843:: with SMTP id v3mr2805338pgj.69.1557376646251; Wed, 08 May 2019 21:37:26 -0700 (PDT) MIME-Version: 1.0 From: Steve French Date: Wed, 8 May 2019 23:37:14 -0500 Message-ID: Subject: [SMB3][PATCH] Display session id in /proc/fs/cifs/DebugData To: CIFS Cc: Pavel Shilovsky Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org Pavel noticed that we don't display the session id in /proc/fs/cifs/DebugData yet it is important. Patch to add this attached --- Thanks, Steve From f7de337f9cff0470d0d1db0494a1d1fcd1a98e1b Mon Sep 17 00:00:00 2001 From: Steve French Date: Wed, 8 May 2019 22:41:37 -0500 Subject: [PATCH] smb3: display session id in debug data Displaying the session id in /proc/fs/cifs/DebugData is needed in order to correlate Linux client information with network and server traces for many common support scenarios. Signed-off-by: Steve French --- fs/cifs/cifs_debug.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/cifs/cifs_debug.c b/fs/cifs/cifs_debug.c index 6a69f11aacf7..bef78b3a93d3 100644 --- a/fs/cifs/cifs_debug.c +++ b/fs/cifs/cifs_debug.c @@ -380,6 +380,8 @@ static int cifs_debug_data_proc_show(struct seq_file *m, void *v) atomic_read(&server->in_send), atomic_read(&server->num_waiters)); #endif + /* dump session id helpful for use with network trace */ + seq_printf(m, " SessionId: %llu", ses->Suid); if (ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) seq_puts(m, " encrypted"); if (ses->sign) -- 2.20.1