On Tue, Oct 3, 2017 at 1:07 PM, Adrian Hunter <adrian.hunter@xxxxxxxxx> wrote: > On 03/10/17 13:00, Linus Walleij wrote: >> Since I'm still supporting the old refcounting with md->usage >> as described above, it should behave the same as the old >> codebase, which might not be very good behaviour but atleast >> it is not a regression. > > How do you know you are not dropping the last reference when you do > md->usage-- ? Ah dammit what was I thinking... OK converting to mmc_blk_get() +mmc_blk_put() that should do it. Sorry for silly mistakes. :/ Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html