diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2019-01-24 10:40:16 +0100 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2019-02-13 13:15:14 +0100 |
commit | eb98e3bdf3aa7b15b40c65063ea935f953f60c6b (patch) | |
tree | e4f78c73977fc0cc761e56c901b14d25d671dbd6 /fs/fuse/cuse.c | |
parent | 6b675738ce900dac8f8478b1d8487df420a315f3 (diff) | |
download | talos-op-linux-eb98e3bdf3aa7b15b40c65063ea935f953f60c6b.tar.gz talos-op-linux-eb98e3bdf3aa7b15b40c65063ea935f953f60c6b.zip |
fuse: clean up aborted
The only caller that needs fc->aborted set is fuse_conn_abort_write().
Setting fc->aborted is now racy (fuse_abort_conn() may already be in
progress or finished) but there's no reason to care.
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse/cuse.c')
-rw-r--r-- | fs/fuse/cuse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/fuse/cuse.c b/fs/fuse/cuse.c index d73eba592ba1..55a26f351467 100644 --- a/fs/fuse/cuse.c +++ b/fs/fuse/cuse.c @@ -408,7 +408,7 @@ err_unlock: err_region: unregister_chrdev_region(devt, 1); err: - fuse_abort_conn(fc, false); + fuse_abort_conn(fc); goto out; } @@ -587,7 +587,7 @@ static ssize_t cuse_class_abort_store(struct device *dev, { struct cuse_conn *cc = dev_get_drvdata(dev); - fuse_abort_conn(&cc->fc, false); + fuse_abort_conn(&cc->fc); return count; } static DEVICE_ATTR(abort, 0200, NULL, cuse_class_abort_store); |