summaryrefslogtreecommitdiffstats
path: root/fs/fuse/dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/fuse/dev.c')
-rw-r--r--fs/fuse/dev.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c
index dadd617d826c..ed1abc9e33cf 100644
--- a/fs/fuse/dev.c
+++ b/fs/fuse/dev.c
@@ -276,10 +276,12 @@ static void flush_bg_queue(struct fuse_conn *fc)
276void fuse_request_end(struct fuse_conn *fc, struct fuse_req *req) 276void fuse_request_end(struct fuse_conn *fc, struct fuse_req *req)
277{ 277{
278 struct fuse_iqueue *fiq = &fc->iq; 278 struct fuse_iqueue *fiq = &fc->iq;
279 bool async = req->args->end; 279 bool async;
280 280
281 if (test_and_set_bit(FR_FINISHED, &req->flags)) 281 if (test_and_set_bit(FR_FINISHED, &req->flags))
282 goto put_request; 282 goto put_request;
283
284 async = req->args->end;
283 /* 285 /*
284 * test_and_set_bit() implies smp_mb() between bit 286 * test_and_set_bit() implies smp_mb() between bit
285 * changing and below intr_entry check. Pairs with 287 * changing and below intr_entry check. Pairs with