linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Wagner <dwagner@suse.de>
To: Ming Lei <ming.lei@redhat.com>
Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org,
	Jens Axboe <axboe@kernel.dk>, Hannes Reinecke <hare@suse.de>
Subject: Re: [PATCH 2/2] block: hold queue lock while iterating in diskstats_show
Date: Thu, 20 Jan 2022 15:01:26 +0100	[thread overview]
Message-ID: <20220120140126.ntzvrcmczd7pph75@carbon.lan> (raw)
In-Reply-To: <Yelo1gx5cp1l4npK@T590>

[-- Attachment #1: Type: text/plain, Size: 1120 bytes --]

On Thu, Jan 20, 2022 at 09:51:18PM +0800, Ming Lei wrote:
> Then Can you figure out where blk_mq_queue_tag_busy_iter+0x1e4 points to
> in source code? And what is NULL pointer?

Here we go:

/usr/src/debug/kernel-default-5.3.18-59.27.1.x86_64/linux-5.3/linux-obj/../include/linux/sbitmap.h: 249
0xffffffffb244a254 <blk_mq_queue_tag_busy_iter+484>:    mov    (%rax),%rdx

234static inline void __sbitmap_for_each_set(struct sbitmap *sb,
235                                          unsigned int start,
236                                          sb_for_each_fn fn, void *data)
237{
238        unsigned int index;
239        unsigned int nr;
240        unsigned int scanned = 0;
241
242        if (start >= sb->depth)
243                start = 0;
244        index = SB_NR_TO_INDEX(sb, start);
245        nr = SB_NR_TO_BIT(sb, start);
246
247        while (scanned < sb->depth) {
248                unsigned long word;
249                unsigned int depth = min_t(unsigned int,
250                                           sb->map[index].depth - nr,
251                                           sb->depth - scanned);


[-- Attachment #2: blk_mq_queue_tag_busy_iter.dis --]
[-- Type: application/vnd.mobius.dis, Size: 15457 bytes --]

  reply	other threads:[~2022-01-20 14:01 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-20 10:52 [PATCH 0/2] fix crash by reading /proc/diskstats Daniel Wagner
2022-01-20 10:52 ` [PATCH 1/2] block: remove commented out code from diskstats_show Daniel Wagner
2022-01-20 11:02   ` Hannes Reinecke
2022-03-04 15:38     ` Daniel Wagner
2022-01-20 10:52 ` [PATCH 2/2] block: hold queue lock while iterating in diskstats_show Daniel Wagner
2022-01-20 11:18   ` Hannes Reinecke
2022-01-20 12:41     ` Daniel Wagner
2022-01-20 12:56   ` Ming Lei
2022-01-20 13:19     ` Daniel Wagner
2022-01-20 13:51       ` Ming Lei
2022-01-20 14:01         ` Daniel Wagner [this message]
2022-01-20 14:06           ` Daniel Wagner
2022-01-20 14:21           ` Christoph Hellwig
2022-01-20 14:34             ` Daniel Wagner
2022-01-20 15:37           ` Ming Lei
2022-01-20 16:29             ` Daniel Wagner
2022-03-04 14:53               ` Daniel Wagner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220120140126.ntzvrcmczd7pph75@carbon.lan \
    --to=dwagner@suse.de \
    --cc=axboe@kernel.dk \
    --cc=hare@suse.de \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ming.lei@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).