]> git.baikalelectronics.ru Git - kernel.git/commit
block/sed-opal: Introduce free_opal_dev to free the structure and clean up state
authorScott Bauer <scott.bauer@intel.com>
Wed, 22 Feb 2017 17:15:06 +0000 (10:15 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 23 Feb 2017 18:55:41 +0000 (11:55 -0700)
commit5b419401e695bce8ce8ebc91d3deaabc4ca87d80
tree7ae43ae226e85c4db783756a3c07f14ed1dbd0cf
parentdafb4dfb80e9f1c9e0e3640ac21a58cb0b87fe34
block/sed-opal: Introduce free_opal_dev to free the structure and clean up state

Before we free the opal structure we need to clean up any saved
locking ranges that the user had told us to unlock from a suspend.

Signed-off-by: Scott Bauer <scott.bauer@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/sed-opal.c
include/linux/sed-opal.h