Skip to content

make Statfs and Fsync timeout faster for unmounting#24433

Merged
songgao merged 2 commits intomasterfrom
songgao/ZCLIENT-1205
Jan 27, 2021
Merged

make Statfs and Fsync timeout faster for unmounting#24433
songgao merged 2 commits intomasterfrom
songgao/ZCLIENT-1205

Conversation

@songgao
Copy link
Copy Markdown
Contributor

@songgao songgao commented Jan 26, 2021

Otherwise if service has already exited, these calls will hang forever
causing both umount and diskutil umount force to block. Eventually
something else kicks in and kills the KBFS process, leaving behind a
mount point. With this fix, there's a greater chance that unmounting
happens before the KBFS process gets killed.

Otherwise if service has already exited, these calls will hang forever
causing both `umount` and `diskutil umount force` to block. Eventually
something else kicks in and kills the KBFS process, leaving behind a
mount point. With this fix, there's a greater chance that unmounting
happens before the KBFS process gets killed.
@songgao songgao requested a review from strib January 26, 2021 08:09
Comment thread go/kbfs/libfuse/fs.go Outdated
Comment thread go/kbfs/libfuse/pidpath_others.go Outdated
Comment thread go/kbfs/libfuse/file.go Outdated
@songgao songgao merged commit b08d45f into master Jan 27, 2021
@songgao songgao deleted the songgao/ZCLIENT-1205 branch January 27, 2021 00:46
songgao added a commit that referenced this pull request Jan 29, 2021
* make Statfs and Fsync timeout faster for unmounting

Otherwise if service has already exited, these calls will hang forever
causing both `umount` and `diskutil umount force` to block. Eventually
something else kicks in and kills the KBFS process, leaving behind a
mount point. With this fix, there's a greater chance that unmounting
happens before the KBFS process gets killed.

* strib feedback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants