Re: [PATCH] block/sed-opal: Introduce free_opal_dev to free the structure and clean up state

2017-02-18 Thread Christoph Hellwig
On Fri, Feb 17, 2017 at 10:25:13AM -0700, Scott Bauer wrote: > 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. > Also fixup a list_for_each to list_for_each_safe in the save path. > > Signed-off-by: Scott Bauer

[PATCH] block/sed-opal: Introduce free_opal_dev to free the structure and clean up state

2017-02-17 Thread Scott Bauer
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. Also fixup a list_for_each to list_for_each_safe in the save path. Signed-off-by: Scott Bauer --- block/sed-opal.c | 33