Add a KASSERT which checks that a class never fails a closing ->access()
call.
This commit is contained in:
parent
f457ed1403
commit
bfc37a5112
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=125802
@ -627,6 +627,9 @@ g_access(struct g_consumer *cp, int dcr, int dcw, int dce)
|
||||
/* Ok then... */
|
||||
|
||||
error = pp->geom->access(pp, dcr, dcw, dce);
|
||||
KASSERT(dcr > 0 || dcw > 0 || dce > 0 || error == 0,
|
||||
("Geom provider %s::%s failed closing ->access()",
|
||||
pp->geom->class->name, pp->name));
|
||||
if (!error) {
|
||||
/*
|
||||
* If we open first write, spoil any partner consumers.
|
||||
|
Loading…
Reference in New Issue
Block a user