On Thu, Sep 26, 2019 at 03:58:36PM +0800, Yunfeng Ye wrote:
The async_lock is big global lock, I think it's good to put kfree() outside
to keep the critical area as short as possible.
Agreed, kfree is not always cheap. We had patches in btrfs moving kfree
out of critical section(s) after causing softlockups due to increased lock
contention.