Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fuse: kill req->intr_unique

This field is not needed after the previous patch, since we can easily
convert request ID to interrupt request ID and vice versa.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>

authored by

Kirill Tkhai and committed by
Miklos Szeredi
3a5358d1 c59fd85e

+5 -9
+5 -6
fs/fuse/dev.c
··· 1095 1095 int err; 1096 1096 1097 1097 list_del_init(&req->intr_entry); 1098 - req->intr_unique = (req->in.h.unique | FUSE_INT_REQ_BIT); 1099 1098 memset(&ih, 0, sizeof(ih)); 1100 1099 memset(&arg, 0, sizeof(arg)); 1101 1100 ih.len = reqsize; 1102 1101 ih.opcode = FUSE_INTERRUPT; 1103 - ih.unique = req->intr_unique; 1102 + ih.unique = (req->in.h.unique | FUSE_INT_REQ_BIT); 1104 1103 arg.unique = req->in.h.unique; 1105 1104 1106 1105 spin_unlock(&fiq->waitq.lock); ··· 1807 1808 struct fuse_req *req; 1808 1809 1809 1810 list_for_each_entry(req, &fpq->processing, list) { 1810 - if (req->in.h.unique == unique || req->intr_unique == unique) 1811 + if (req->in.h.unique == unique) 1811 1812 return req; 1812 1813 } 1813 1814 return NULL; ··· 1881 1882 if (!fpq->connected) 1882 1883 goto err_unlock_pq; 1883 1884 1884 - req = request_find(fpq, oh.unique); 1885 + req = request_find(fpq, oh.unique & ~FUSE_INT_REQ_BIT); 1885 1886 if (!req) 1886 1887 goto err_unlock_pq; 1887 1888 1888 - /* Is it an interrupt reply? */ 1889 - if (req->intr_unique == oh.unique) { 1889 + /* Is it an interrupt reply ID? */ 1890 + if (oh.unique & FUSE_INT_REQ_BIT) { 1890 1891 __fuse_get_request(req); 1891 1892 spin_unlock(&fpq->lock); 1892 1893
-3
fs/fuse/fuse_i.h
··· 311 311 /** refcount */ 312 312 refcount_t count; 313 313 314 - /** Unique ID for the interrupt request */ 315 - u64 intr_unique; 316 - 317 314 /* Request flags, updated with test/set/clear_bit() */ 318 315 unsigned long flags; 319 316