From patchwork Mon Jan 23 18:59:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Omar Sandoval X-Patchwork-Id: 9533357 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 D7D6860434 for ; Mon, 23 Jan 2017 19:00:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A38FE2833F for ; Mon, 23 Jan 2017 19:00:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 97A442841C; Mon, 23 Jan 2017 19:00:27 +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.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, 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 43C1128409 for ; Mon, 23 Jan 2017 19:00:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751467AbdAWTA0 (ORCPT ); Mon, 23 Jan 2017 14:00:26 -0500 Received: from mail-pf0-f172.google.com ([209.85.192.172]:36295 "EHLO mail-pf0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751392AbdAWTAW (ORCPT ); Mon, 23 Jan 2017 14:00:22 -0500 Received: by mail-pf0-f172.google.com with SMTP id 189so43262623pfu.3 for ; Mon, 23 Jan 2017 11:00:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osandov-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=CpejRrr/D/n2+wJnuQ9yztq3yAJ+R8HYRq9kY6Mo9B0=; b=v+KApwnW0DEDLlqMUH7oNeEv7nQ9To/O6N+eS4dJxt84rRIAhjw2ozvoKni+kBgK1a GH/bZIYazAQsF1wdeqtYxw7HSUZSkHsoLW9kgpnaUW+ec/iIl424L/2fjiwlL3/87ARV t47yC5V5UrPJ/05nIG6DMMWVRLov3NtU3aq6/W7w8Ja4t0eI6AQUmZcg3vW2gcEPdAe8 RZ0CUHdkmDDdQJx7w1g7DHV08uOxNk7jwxJv+zkgXvMSoB4UMdu/Pvj9RmrE0NYC+E7z wnf48HcBNi1WXdAcz288fl+dq5h4XJLqFKVn7Yi4COUhpHY4/KcVjlDOw7pdxGYZB4Vb p+wg== 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:in-reply-to :references:in-reply-to:references; bh=CpejRrr/D/n2+wJnuQ9yztq3yAJ+R8HYRq9kY6Mo9B0=; b=PZ/L8cXuyVvZ/S8CedukeD4eBiGvUZ5Mgp4wgrlxWCcykqpNjBkUgAcp+qRm70sOX+ ivPj6sXTACBISh1iqwFDg35iBakAM/TWppl4XL44qBhZ8reHvhPIyxHNKmhy/s+6ppMr B73LtPSlWShM7THvF08rFbwSFWIBnnhGni/l1TfOJp2nUf/nTsLgPdT20AZ6iN0U2+Dq xEp7FNwIPWMlzz9ELBCdR+tIXrzcDVstBplGKYsegeR6LfG2vX5eL0PgnIQn9uuKT2Fc 1/MjimoO8H0irF48ouL/6SLzqLn4UeXne14YylvmdEAjcbZz62Et78IcsxnkESwgLeLY lm3A== X-Gm-Message-State: AIkVDXICjlB6kVFrTKdkHFBv879q87juMr4DefXbyTGW8qk1E0QABsM6Wh6nDQomqcQP6bM8 X-Received: by 10.98.205.3 with SMTP id o3mr33464358pfg.148.1485198022166; Mon, 23 Jan 2017 11:00:22 -0800 (PST) Received: from vader.thefacebook.com ([2620:10d:c090:200::d:6f]) by smtp.gmail.com with ESMTPSA id j185sm38869867pgd.35.2017.01.23.11.00.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 23 Jan 2017 11:00:21 -0800 (PST) From: Omar Sandoval To: Jens Axboe , linux-block@vger.kernel.org Cc: kernel-team@fb.com Subject: [PATCH 04/10] blk-mq: add extra request information to debugfs Date: Mon, 23 Jan 2017 10:59:41 -0800 Message-Id: X-Mailer: git-send-email 2.11.0 In-Reply-To: References: In-Reply-To: References: Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Omar Sandoval The request pointers by themselves aren't super useful. Signed-off-by: Omar Sandoval Reviewed-by: Hannes Reinecke --- block/blk-mq-debugfs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c index 1967c06d80e0..ee947f2f605b 100644 --- a/block/blk-mq-debugfs.c +++ b/block/blk-mq-debugfs.c @@ -87,7 +87,9 @@ static int blk_mq_debugfs_rq_show(struct seq_file *m, void *v) { struct request *rq = list_entry_rq(v); - seq_printf(m, "%p\n", rq); + seq_printf(m, "%p {.cmd_type=%u, .cmd_flags=0x%x, .rq_flags=0x%x, .tag=%d, .internal_tag=%d}\n", + rq, rq->cmd_type, rq->cmd_flags, (unsigned int)rq->rq_flags, + rq->tag, rq->internal_tag); return 0; }