Lines Matching refs:fpq

1202 	struct fuse_pqueue *fpq = &fud->pq;  in fuse_dev_do_read()  local
1277 spin_lock(&fpq->lock); in fuse_dev_do_read()
1278 list_add(&req->list, &fpq->io); in fuse_dev_do_read()
1279 spin_unlock(&fpq->lock); in fuse_dev_do_read()
1286 spin_lock(&fpq->lock); in fuse_dev_do_read()
1288 if (!fpq->connected) { in fuse_dev_do_read()
1301 list_move_tail(&req->list, &fpq->processing[hash]); in fuse_dev_do_read()
1304 spin_unlock(&fpq->lock); in fuse_dev_do_read()
1316 spin_unlock(&fpq->lock); in fuse_dev_do_read()
1793 static struct fuse_req *request_find(struct fuse_pqueue *fpq, u64 unique) in request_find() argument
1798 list_for_each_entry(req, &fpq->processing[hash], list) { in request_find()
1838 struct fuse_pqueue *fpq = &fud->pq; in fuse_dev_do_write() local
1867 spin_lock(&fpq->lock); in fuse_dev_do_write()
1869 if (fpq->connected) in fuse_dev_do_write()
1870 req = request_find(fpq, oh.unique & ~FUSE_INT_REQ_BIT); in fuse_dev_do_write()
1874 spin_unlock(&fpq->lock); in fuse_dev_do_write()
1881 spin_unlock(&fpq->lock); in fuse_dev_do_write()
1897 list_move(&req->list, &fpq->io); in fuse_dev_do_write()
1900 spin_unlock(&fpq->lock); in fuse_dev_do_write()
1911 spin_lock(&fpq->lock); in fuse_dev_do_write()
1913 if (!fpq->connected) in fuse_dev_do_write()
1919 spin_unlock(&fpq->lock); in fuse_dev_do_write()
2122 struct fuse_pqueue *fpq = &fud->pq; in fuse_abort_conn() local
2124 spin_lock(&fpq->lock); in fuse_abort_conn()
2125 fpq->connected = 0; in fuse_abort_conn()
2126 list_for_each_entry_safe(req, next, &fpq->io, list) { in fuse_abort_conn()
2138 list_splice_tail_init(&fpq->processing[i], in fuse_abort_conn()
2140 spin_unlock(&fpq->lock); in fuse_abort_conn()
2182 struct fuse_pqueue *fpq = &fud->pq; in fuse_dev_release() local
2186 spin_lock(&fpq->lock); in fuse_dev_release()
2187 WARN_ON(!list_empty(&fpq->io)); in fuse_dev_release()
2189 list_splice_init(&fpq->processing[i], &to_end); in fuse_dev_release()
2190 spin_unlock(&fpq->lock); in fuse_dev_release()