lkml.org 
[lkml]   [2020]   [Jul]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH 13/17] watch_queue: Implement mount topology and attribute change notifications [ver #5]
    Date
    Ian Kent <raven@themaw.net> wrote:

    > I was wondering about id re-use.
    >
    > Assuming that ids that are returned to the idr db are re-used
    > what would the chance that a recently used id would end up
    > being used?
    >
    > Would that chance increase as ids are consumed and freed over
    > time?

    I've added something to deal with that in the fsinfo branch. I've given each
    mount object and superblock a supplementary 64-bit unique ID that's not likely
    to repeat before we're no longer around to have to worry about it.

    fsinfo() then allows you to retrieve them by path or by mount ID.

    So, yes, mnt_id and s_dev are not unique and may be reused very quickly, but
    I'm also providing uniquifiers that you can check.

    David

    \
     
     \ /
      Last update: 2020-07-24 13:36    [W:4.591 / U:0.324 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site