diff options
author | Logan Gunthorpe <logang@deltatee.com> | 2022-09-08 10:15:15 -0600 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2022-09-22 00:05:04 -0700 |
commit | 3bfc3bcd787c48aa31e4fde4a6dfcef4cd7ee2c2 (patch) | |
tree | 3cd0f9504dd11972a378238e770f4e158d3ec624 /tools/perf/scripts/python/syscall-counts.py | |
parent | c66a6f41e09ad386fd2cce22b9cded837bbbc704 (diff) |
md: Remove extra mddev_get() in md_seq_start()
A regression is seen where mddev devices stay permanently after they
are stopped due to an elevated reference count.
This was tracked down to an extra mddev_get() in md_seq_start().
It only happened rarely because most of the time the md_seq_start()
is called with a zero offset. The path with an extra mddev_get() only
happens when it starts with a non-zero offset.
The commit noted below changed an mddev_get() to check its success
but inadvertently left the original call in. Remove the extra call.
Fixes: 12a6caf27324 ("md: only delete entries from all_mddevs when the disk is freed")
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Guoqing Jiang <Guoqing.jiang@linux.dev>
Signed-off-by: Song Liu <song@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions