diff options
author | Kirill Tkhai <ktkhai@virtuozzo.com> | 2018-11-08 12:05:20 +0300 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2019-02-13 13:15:13 +0100 |
commit | 8da6e9183275c837e7d2401b3018ff81f657a19a (patch) | |
tree | e236343f7d25d23ede18cfe00cadd76f6b79c7d0 /fs/fuse | |
parent | 340617508d24d699c02a1e8a5ab3f53492f53386 (diff) | |
download | linux-stable-8da6e9183275c837e7d2401b3018ff81f657a19a.tar.gz linux-stable-8da6e9183275c837e7d2401b3018ff81f657a19a.tar.bz2 linux-stable-8da6e9183275c837e7d2401b3018ff81f657a19a.zip |
fuse: Kill fasync only if interrupt is queued in queue_interrupt()
We should sent signal only in case of interrupt is really queued. Not a
real problem, but this makes the code clearer and intuitive.
Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse')
-rw-r--r-- | fs/fuse/dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index 3feb071a0483..11246e7965e8 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c @@ -480,9 +480,9 @@ static void queue_interrupt(struct fuse_iqueue *fiq, struct fuse_req *req) if (list_empty(&req->intr_entry)) { list_add_tail(&req->intr_entry, &fiq->interrupts); wake_up_locked(&fiq->waitq); + kill_fasync(&fiq->fasync, SIGIO, POLL_IN); } spin_unlock(&fiq->waitq.lock); - kill_fasync(&fiq->fasync, SIGIO, POLL_IN); } static void request_wait_answer(struct fuse_conn *fc, struct fuse_req *req) |