diff options
| author | Alan Somers <asomers@FreeBSD.org> | 2019-06-28 18:48:02 +0000 |
|---|---|---|
| committer | Alan Somers <asomers@FreeBSD.org> | 2019-06-28 18:48:02 +0000 |
| commit | 7e1f5432f423bc274fe2705cb1facec04fe028ff (patch) | |
| tree | 7e53fa8e68cff8009d0549818d9fb3484663b26d /sys | |
| parent | 8aafc8c3894e5d5d302bd04d88aec04d719b4377 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/fs/fuse/fuse_device.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/fs/fuse/fuse_device.c b/sys/fs/fuse/fuse_device.c index 8f5f9bfade961..203da2c6f7ba3 100644 --- a/sys/fs/fuse/fuse_device.c +++ b/sys/fs/fuse/fuse_device.c @@ -157,6 +157,13 @@ fdata_dtor(void *arg) fuse_ticket_drop(tick); } fuse_lck_mtx_unlock(fdata->aw_mtx); + + /* Cleanup unsent operations */ + fuse_lck_mtx_lock(fdata->ms_mtx); + while ((tick = fuse_ms_pop(fdata))) { + fuse_ticket_drop(tick); + } + fuse_lck_mtx_unlock(fdata->ms_mtx); FUSE_UNLOCK(); fdata_trydestroy(fdata); |
