All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@lst.de>
To: Christian Brauner <brauner@kernel.org>
Cc: Christoph Hellwig <hch@lst.de>,
	jack@suse.cz, linux-fsdevel@vger.kernel.org
Subject: Re: bd_holder
Date: Mon, 7 Aug 2023 12:47:14 +0200	[thread overview]
Message-ID: <20230807104714.GA14922@lst.de> (raw)
In-Reply-To: <20230807-hinzu-barhocker-7e7826d113cb@brauner>

On Mon, Aug 07, 2023 at 11:28:54AM +0200, Christian Brauner wrote:
> I've been looking into reducing sb_lock and replacing it mostly with a
> new file_system_type->fs_super_lock which would be a
> per-file-system-type spinlock protecting fs_type->fs_supers.
> 
> With the changes in vfs.super bd_holder always stores the super_block
> and so we should be able to get rid of get_super() and user_get_super()
> completely. Am I right in this or is there something that would prevent
> us from doing something like the following (completely untested sketch)?:

I have a series killing get_super, and it looks pretty similar to what
you've proposed.  I'm completely under water right now but I hope can
get it into a good enough shape to post it later today or tomorrow.

user_get_super OTOH can't go away.  It's only used in two legacy APIs
where it must only work for the device in s_dev.  It's not performance
critical and we could use other lookup schemes.

get_active_super can go away, but with Darrick having queued up work
in this area it'll have to wait for next merge window.

      reply	other threads:[~2023-08-07 10:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-07  9:28 bd_holder Christian Brauner
2023-08-07 10:47 ` Christoph Hellwig [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230807104714.GA14922@lst.de \
    --to=hch@lst.de \
    --cc=brauner@kernel.org \
    --cc=jack@suse.cz \
    --cc=linux-fsdevel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.