mirror of
https://github.com/versity/scoutfs.git
synced 2026-02-07 11:10:44 +00:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user