* [PATCH v3] nvdimm/btt: do not call del_gendisk() if not needed
@ 2021-11-03 16:58 Luis Chamberlain
2021-11-03 19:29 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Luis Chamberlain @ 2021-11-03 16:58 UTC (permalink / raw)
To: axboe, hch, dan.j.williams, vishal.l.verma, dave.jiang,
ira.weiny, mcgrof
Cc: linux-block, nvdimm, linux-kernel
del_gendisk() should not called if the disk has not been added. Fix this.
Fixes: 41cd8b70c37a ("libnvdimm, btt: add support for blk integrity")
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
---
This v3 just makes it clear that this is just wrong regarless of the
kernel, and adds Christoph's Reviewed-by tag.
drivers/nvdimm/btt.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/nvdimm/btt.c b/drivers/nvdimm/btt.c
index f10a50ffa047..a62f23b945f1 100644
--- a/drivers/nvdimm/btt.c
+++ b/drivers/nvdimm/btt.c
@@ -1537,7 +1537,6 @@ static int btt_blk_init(struct btt *btt)
int rc = nd_integrity_init(btt->btt_disk, btt_meta_size(btt));
if (rc) {
- del_gendisk(btt->btt_disk);
blk_cleanup_disk(btt->btt_disk);
return rc;
}
--
2.33.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH v3] nvdimm/btt: do not call del_gendisk() if not needed
2021-11-03 16:58 [PATCH v3] nvdimm/btt: do not call del_gendisk() if not needed Luis Chamberlain
@ 2021-11-03 19:29 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2021-11-03 19:29 UTC (permalink / raw)
To: vishal.l.verma, ira.weiny, dave.jiang, Luis Chamberlain, hch,
dan.j.williams
Cc: linux-block, linux-kernel, nvdimm
On Wed, 3 Nov 2021 09:58:43 -0700, Luis Chamberlain wrote:
> del_gendisk() should not called if the disk has not been added. Fix this.
>
>
Applied, thanks!
[1/1] nvdimm/btt: do not call del_gendisk() if not needed
commit: 3aefb5ee843fbe4789d03bb181e190d462df95e4
Best regards,
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-11-03 19:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-03 16:58 [PATCH v3] nvdimm/btt: do not call del_gendisk() if not needed Luis Chamberlain
2021-11-03 19:29 ` Jens Axboe
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.