diff mbox

[03/11] libnvdimm, btt: drop blk_integrity_unregister() at shutdown

Message ID 20151014022815.34443.6993.stgit@dwillia2-desk3.jf.intel.com (mailing list archive)
State Superseded
Headers show

Commit Message

Dan Williams Oct. 14, 2015, 2:28 a.m. UTC
Now that the integrity profile is statically allocated there is no work
to do when shutting down an integrity enabled block device.

Cc: Vishal Verma <vishal.l.verma@intel.com>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
---
 drivers/nvdimm/btt.c |    1 -
 1 file changed, 1 deletion(-)

Comments

Verma, Vishal L Oct. 14, 2015, 11:42 p.m. UTC | #1
On Tue, 2015-10-13 at 22:28 -0400, Dan Williams wrote:
> Now that the integrity profile is statically allocated there is no
> work
> to do when shutting down an integrity enabled block device.
> 
> Cc: Vishal Verma <vishal.l.verma@intel.com>
> Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
> ---
>  drivers/nvdimm/btt.c |    1 -
>  1 file changed, 1 deletion(-)
> 
Looks good.

Acked-by: Vishal Verma <vishal.l.verma@intel.com>
diff mbox

Patch

diff --git a/drivers/nvdimm/btt.c b/drivers/nvdimm/btt.c
index 254239746020..eae93ab8ffcd 100644
--- a/drivers/nvdimm/btt.c
+++ b/drivers/nvdimm/btt.c
@@ -1279,7 +1279,6 @@  static int btt_blk_init(struct btt *btt)
 
 static void btt_blk_cleanup(struct btt *btt)
 {
-	blk_integrity_unregister(btt->btt_disk);
 	del_gendisk(btt->btt_disk);
 	put_disk(btt->btt_disk);
 	blk_cleanup_queue(btt->btt_queue);