* If the fs_io() hook failed, we need to check if the request has been notified
about it (there is also no public API to do that in the FS yet). * This could have caused bug #2719, although the specific reason why the FS hook failed remains unknown. At least it won't hang in this case anymore. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31809 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -410,6 +410,11 @@ vfs_vnode_io(struct vnode* vnode, void* cookie, io_request* request)
|
||||
return synchronous_io(request, io);
|
||||
}
|
||||
|
||||
if (result != B_OK && !request->IsFinished()) {
|
||||
// The request failed, but its owner has not been notified yet
|
||||
request->SetStatusAndNotify(result);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user