mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
fuse: move interrupt related members to fuse_chan
Move: - no_interrupt Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
This commit is contained in:
parent
0ea79b7d07
commit
36b6a1e5ed
|
|
@ -615,7 +615,7 @@ static void request_wait_answer(struct fuse_req *req)
|
|||
struct fuse_iqueue *fiq = &fc->chan->iq;
|
||||
int err;
|
||||
|
||||
if (!fc->no_interrupt) {
|
||||
if (!fc->chan->no_interrupt) {
|
||||
/* Any signal may interrupt this */
|
||||
err = wait_event_interruptible(req->waitq,
|
||||
test_bit(FR_FINISHED, &req->flags));
|
||||
|
|
@ -2308,7 +2308,7 @@ static ssize_t fuse_dev_do_write(struct fuse_dev *fud,
|
|||
if (nbytes != sizeof(struct fuse_out_header))
|
||||
err = -EINVAL;
|
||||
else if (oh.error == -ENOSYS)
|
||||
fc->no_interrupt = 1;
|
||||
fc->chan->no_interrupt = true;
|
||||
else if (oh.error == -EAGAIN)
|
||||
err = queue_interrupt(req);
|
||||
|
||||
|
|
|
|||
|
|
@ -128,6 +128,9 @@ struct fuse_chan {
|
|||
/** The number of requests waiting for completion */
|
||||
atomic_t num_waiting;
|
||||
|
||||
/** Is interrupt not implemented by fs? */
|
||||
bool no_interrupt;
|
||||
|
||||
/* Use io_uring for communication */
|
||||
unsigned int io_uring;
|
||||
|
||||
|
|
|
|||
|
|
@ -659,9 +659,6 @@ struct fuse_conn {
|
|||
/** Is create not implemented by fs? */
|
||||
unsigned no_create:1;
|
||||
|
||||
/** Is interrupt not implemented by fs? */
|
||||
unsigned no_interrupt:1;
|
||||
|
||||
/** Is bmap not implemented by fs? */
|
||||
unsigned no_bmap:1;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user