Logan Gunthorpe
3bfc3bcd78
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: 12a6caf273 ("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 >
2022-09-22 00:05:04 -07:00
..
2022-09-19 11:12:35 -06:00
2022-07-28 17:46:14 -04:00
2021-10-27 16:53:47 -04:00
2021-10-27 16:53:47 -04:00
2021-10-18 06:17:02 -06:00
2022-08-11 19:46:48 -07:00
2022-05-09 15:40:10 -04:00
2022-07-07 11:49:37 -04:00
2022-02-22 10:35:53 -05:00
2022-07-07 11:49:37 -04:00
2021-04-19 13:20:31 -04:00
2022-04-17 19:49:59 -06:00
2022-07-07 11:49:34 -04:00
2022-05-09 12:34:03 -04:00
2022-05-05 17:31:35 -04:00
2021-10-18 14:43:22 -06:00
2022-08-06 11:09:55 -07:00
2022-06-21 13:35:01 -04:00
2021-10-18 14:43:22 -06:00
2022-07-14 12:14:31 -06:00
2022-07-07 11:49:34 -04:00
2021-08-20 15:59:47 -04:00
2022-08-06 11:09:55 -07:00
2022-07-07 11:49:32 -04:00
2021-06-28 16:30:13 -04:00
2022-07-14 12:14:31 -06:00
2022-07-07 11:49:33 -04:00
2022-08-02 14:21:25 -07:00
2022-05-27 15:49:30 -07:00
2021-08-10 13:34:23 -04:00
2022-05-27 15:49:30 -07:00
2022-07-14 12:14:31 -06:00
2022-05-09 15:39:23 -04:00
2022-05-09 15:39:23 -04:00
2022-05-09 15:39:23 -04:00
2021-08-10 13:34:23 -04:00
2021-08-10 13:34:23 -04:00
2021-08-10 13:34:23 -04:00
2021-08-10 13:34:23 -04:00
2022-07-14 12:14:31 -06:00
2022-08-02 17:14:40 -06:00
2022-06-29 12:46:05 -04:00
2022-08-06 11:09:55 -07:00
2021-08-10 13:34:23 -04:00
2022-07-07 11:49:39 -04:00
2022-05-09 12:11:07 -04:00
2022-02-21 15:35:39 -05:00
2022-05-16 13:37:59 -07:00
2021-10-18 14:43:22 -06:00
2022-01-06 09:48:55 -05:00
2022-08-02 14:21:25 -07:00
2022-05-16 13:35:56 -07:00
2022-07-15 18:09:14 -04:00
2022-02-22 13:55:50 -05:00
2022-07-15 18:09:14 -04:00
2021-08-10 13:34:23 -04:00
2022-07-28 17:46:14 -04:00
2021-04-14 14:28:29 -04:00
2022-07-28 21:48:12 -07:00
2022-08-11 19:46:48 -07:00
2021-05-25 16:14:05 -04:00
2022-08-06 11:09:55 -07:00
2022-08-11 19:46:48 -07:00
2022-08-02 14:21:25 -07:00
2022-08-05 16:32:45 -07:00
2021-06-04 12:07:24 -04:00
2022-07-06 06:46:26 -06:00
2022-07-14 12:14:31 -06:00
2022-08-05 16:32:45 -07:00
2022-07-07 11:49:34 -04:00
2022-02-16 19:39:09 -07:00
2022-08-02 14:38:59 -07:00
2022-08-02 17:22:46 -06:00
2022-07-14 12:14:32 -06:00
2022-08-02 17:14:44 -06:00
2022-02-04 07:43:18 -07:00
2022-05-22 23:07:21 -07:00
2022-05-22 23:07:21 -07:00
2022-09-22 00:05:04 -07:00
2022-08-02 17:22:46 -06:00
2022-09-22 00:05:03 -07:00
2022-03-08 15:16:54 -08:00
2022-07-14 12:14:31 -06:00
2022-03-08 15:16:54 -08:00
2022-09-22 00:05:04 -07:00
2022-08-02 17:14:31 -06:00
2022-08-02 17:14:31 -06:00
2022-09-22 00:05:04 -07:00
2022-09-22 00:05:04 -07:00
2022-09-22 00:05:03 -07:00
2022-03-08 15:16:54 -08:00