Make g_access() KASSERT() more useful.
Sponsored by: EMC / Isilon Storage Division Obtained from: Isilon OneFS MFC after: 2 weeks
This commit is contained in:
parent
d092e11c6a
commit
87bc328d63
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=264499
@ -912,8 +912,9 @@ g_access(struct g_consumer *cp, int dcr, int dcw, int dce)
|
||||
|
||||
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));
|
||||
("Geom provider %s::%s dcr=%d dcw=%d dce=%d error=%d failed "
|
||||
"closing ->access()", pp->geom->class->name, pp->name, dcr, dcw,
|
||||
dce, error));
|
||||
if (!error) {
|
||||
/*
|
||||
* If we open first write, spoil any partner consumers.
|
||||
|
Loading…
Reference in New Issue
Block a user