Skip to content
  • Kirill Tkhai's avatar
    fuse: change interrupt requests allocation algorithm · c59fd85e
    Kirill Tkhai authored
    
    
    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: default avatarKirill Tkhai <ktkhai@virtuozzo.com>
    Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
    c59fd85e