• Alexander Viro's avatar
    [PATCH] refcounts for gendisks · 68c16870
    Alexander Viro authored
    Finally.  We use disk->dev.refcount as a gendisk refcount.  New helper -
    get_disk(): atomic_inc on refcount.  get_gendisk() does it on return,
    callers of get_gendisk() do put_disk() when they are done.
    68c16870
ioctl.c 5.81 KB