Re: [PATCH] fs/super.c: defer more work after super_block is off of the super_blocks list
From: Luis Chamberlain
Date: Wed Nov 03 2021 - 08:14:52 EST
On Fri, Oct 22, 2021 at 04:28:46PM -0700, Luis Chamberlain wrote:
> Once it is off the super_blocks list we don't really need to hold the
> sb_lock anymore, we can defer the rest of the work. This reduces a few
> uneeded operations from contention from the sb_lock.
>
> This is a minor optimization found through code inspection. If the
> sb_lock is not needed, no need for contention to wait while we free
> items. While at it, add a bit of documentation about the extent to
> which the sb_lock is used.
>
> Signed-off-by: Luis Chamberlain <mcgrof@xxxxxxxxxx>
*poke*
Luis