linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] mtd: switch to keying by dev_t
@ 2023-08-29 15:23 Christian Brauner
  2023-08-29 15:23 ` [PATCH 1/2] fs: export sget_dev() Christian Brauner
                   ` (4 more replies)
  0 siblings, 5 replies; 18+ messages in thread
From: Christian Brauner @ 2023-08-29 15:23 UTC (permalink / raw)
  To: Christoph Hellwig, Jan Kara, Richard Weinberger
  Cc: Miquel Raynal, Vignesh Raghavendra, linux-mtd, linux-fsdevel,
	Christian Brauner

Hey,

For this cycle Jan, Christoph, and myself switched the generic super
code to key superblocks for block devices by device number (sb->s_dev)
instead of block device pointers (sb->s_bdev).

Not just does this allow us to defer opening block devices after we
allocated a superblock it also allows us to move closing block devices
to a later point to avoid various deadlocks.

Similar to the generic code for block devices we need to switch mtd
devices to rely on sb->s_dev instead of sb->s_mtd to avoid potential
use-after-free issues.

I plan on taking this upstream as a fix during the merge window.

Thanks!
Christian

---



---
base-commit: dc3216b1416056b04712e53431f6e9aefdc83177
change-id: 20230829-vfs-super-mtd-1bb602abfc00


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2023-08-30 18:45 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-29 15:23 [PATCH 0/2] mtd: switch to keying by dev_t Christian Brauner
2023-08-29 15:23 ` [PATCH 1/2] fs: export sget_dev() Christian Brauner
2023-08-29 16:29   ` Christian Brauner
2023-08-29 16:55     ` Richard Weinberger
2023-08-30  6:13       ` hch
2023-08-30  7:51         ` Christian Brauner
2023-08-30  6:14   ` Christoph Hellwig
2023-08-30  8:05     ` Christian Brauner
2023-08-30  9:38       ` Jan Kara
2023-08-30  9:43         ` Christian Brauner
2023-08-30 10:02           ` Christian Brauner
2023-08-30 10:10             ` Jan Kara
2023-08-29 15:23 ` [PATCH 2/2] mtd: key superblock by device number Christian Brauner
2023-08-30 10:13   ` Jan Kara
2023-08-30  9:50 ` [PATCH 0/2] mtd: switch to keying by dev_t Christian Brauner
2023-08-30 10:15   ` Richard Weinberger
2023-08-30 11:52 ` Christoph Hellwig
2023-08-30 12:19 ` Christian Brauner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).