]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fuse: change interrupt requests allocation algorithm
authorKirill Tkhai <ktkhai@virtuozzo.com>
Tue, 11 Sep 2018 10:11:56 +0000 (13:11 +0300)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 28 Sep 2018 14:43:23 +0000 (16:43 +0200)
commitc59fd85e4fd07fdf0ab523a5e9734f5338d6aa19
tree8ff912dba1ee787929c8bda338386b94e7f1e587
parent63825b4e1da5a3cba79d835a5925e5daf7db3a77
fuse: change interrupt requests allocation algorithm

Using of two unconnected IDs req->in.h.unique and req->intr_unique does not
allow to link requests to a hash table. We need can't use none of them as a
key to calculate hash.

This patch changes the algorithm of allocation of IDs for a request. Plain
requests obtain even ID, while interrupt requests are encoded in the low
bit. So, in next patches we will be able to use the rest of ID bits to
calculate hash, and the hash will be the same for plain and interrupt
requests.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/dev.c