mbox series

[0/2] bcache-6.10 20240509

Message ID 20240509011117.2697-1-colyli@suse.de (mailing list archive)
Headers show
Series bcache-6.10 20240509 | expand

Message

Coly Li May 9, 2024, 1:11 a.m. UTC
Hi Jens,

There are two bcache patches I'd like to submit upstream.

The patch from Christophe uses ida_alloc_max()/ida_free() to replace the
deprecated ida_simple_get()/ida_simple_remove().

Patch from Matthew uses similar method which bcachefs code uses, to
remove UBSAN warning of out-of-bounds index on dynamic sized bset
iteration from the in-memory btree node.

These two patches are quite straightforward and have been tested on
my machine for a while and no regression observed.

Please consider take these two patches for bcache-6.10.

Thanks in advance.

Coly Li
---

Christophe JAILLET (1):
  bcache: Remove usage of the deprecated ida_simple_xx() API

Matthew Mirvish (1):
  bcache: fix variable length array abuse in btree_iter

 drivers/md/bcache/bset.c      | 44 +++++++++++++++++------------------
 drivers/md/bcache/bset.h      | 28 ++++++++++++++--------
 drivers/md/bcache/btree.c     | 40 ++++++++++++++++---------------
 drivers/md/bcache/super.c     | 15 ++++++------
 drivers/md/bcache/sysfs.c     |  2 +-
 drivers/md/bcache/writeback.c | 10 ++++----
 6 files changed, 75 insertions(+), 64 deletions(-)

Comments

Jens Axboe May 9, 2024, 1:15 a.m. UTC | #1
On Thu, 09 May 2024 09:11:15 +0800, Coly Li wrote:
> There are two bcache patches I'd like to submit upstream.
> 
> The patch from Christophe uses ida_alloc_max()/ida_free() to replace the
> deprecated ida_simple_get()/ida_simple_remove().
> 
> Patch from Matthew uses similar method which bcachefs code uses, to
> remove UBSAN warning of out-of-bounds index on dynamic sized bset
> iteration from the in-memory btree node.
> 
> [...]

Applied, thanks!

[1/2] bcache: Remove usage of the deprecated ida_simple_xx() API
      commit: 2abd9a197d828ed5c2cbe922368eb28d02861a28
[2/2] bcache: fix variable length array abuse in btree_iter
      commit: 3a861560ccb35f2a4f0a4b8207fa7c2a35fc7f31

Best regards,