scoutfs: get rid of silly lock destroy BUG_ON

The BUG_ON() at the start of scoutfs_lock_destroy() was intended to
ensure that scoutfs_lock_shutdown() had been called first.  But that
doesn't happen in the case where we get an error during mount.

The _destroy() function is careful to notice active use and only tears
down resources that were created.  The BUG_ON() can just be removed.

Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Zach Brown
2018-05-02 09:20:42 -07:00
committed by Zach Brown
parent f3007f10ca
commit 55e063d2a1

View File

@@ -1402,8 +1402,6 @@ void scoutfs_lock_destroy(struct super_block *sb)
if (!linfo)
return;
BUG_ON(!linfo->shutdown);
trace_scoutfs_lock_destroy(sb, linfo);
/* stop the shrinker from queueing work */