• A
    um: convert count_lock to mutex, fix a race in line_open() · d8c215ad
    Al Viro 提交于
    If two processes are opening the same line, the second to get
    into line_open() will decide that it doesn't need to do anything
    (correctly) or wait for anything.  The latter, unfortunately,
    is incorrect - the first opener might not be through yet.  We
    need to have exclusion covering the entire line_init(), including
    the blocking parts.  Moreover, the next patch will need to
    widen the exclusion on mconsole side of things, also including
    the blocking bits, so let's just convert that sucker to mutex...
    Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
    Signed-off-by: NRichard Weinberger <richard@nod.at>
    d8c215ad
line.c 18.9 KB