diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2015-07-01 16:26:03 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2015-07-01 16:26:03 +0200 |
commit | 8f7bb368dbdda76f5e98e05ee49ae2dc138fd42f (patch) | |
tree | aea509906f365c33f54070780905f0c45b18a084 /scripts/Makefile.host | |
parent | 4ce6081260ea4c1b5bfa8ecca5cbb93eea279ad4 (diff) | |
download | op-kernel-dev-8f7bb368dbdda76f5e98e05ee49ae2dc138fd42f.zip op-kernel-dev-8f7bb368dbdda76f5e98e05ee49ae2dc138fd42f.tar.gz |
fuse: allow interrupt queuing without fc->lock
Interrupt is only queued after the request has been sent to userspace.
This is either done in request_wait_answer() or fuse_dev_do_read()
depending on which state the request is in at the time of the interrupt.
If it's not yet sent, then queuing the interrupt is postponed until the
request is read. Otherwise (the request has already been read and is
waiting for an answer) the interrupt is queued immedidately.
We want to call queue_interrupt() without fc->lock protection, in which
case there can be a race between the two functions:
- neither of them queue the interrupt (thinking the other one has already
done it).
- both of them queue the interrupt
The first one is prevented by adding memory barriers, the second is
prevented by checking (under fiq->waitq.lock) if the interrupt has already
been queued.
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'scripts/Makefile.host')
0 files changed, 0 insertions, 0 deletions