public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] block: warn once for each partition in bio_check_ro()
@ 2023-11-28 12:30 Yu Kuai
  2023-11-28 12:30 ` [PATCH v4 1/2] block: move .bd_inode into 1st cacheline of block_device Yu Kuai
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Yu Kuai @ 2023-11-28 12:30 UTC (permalink / raw)
  To: hch, ming.lei, axboe
  Cc: linux-block, linux-kernel, yukuai3, yukuai1, yi.zhang, yangerkun

From: Yu Kuai <yukuai3@huawei.com>

Changes in v4:
 - remove the patch to add 'bd_flags', and add a new field 'bool
 bd_ro_warned' in patch 2. 'bd_flags' will be added once 'bd_inode' is
 removed from other thread.

Changes in v3:
 - add patch 1 from Ming, swap bd_inode layout with bd_openers and
 bd_size_lock;
 - change bd_flags from u32 to u16 in patch 2, prevent to affect layout of
 other fields;

Changes in v2:
 - don't use test/set_bit() for new field, because unsigned long will
 cause that some field can't be placed in the first cacheline(64 bytes),
 use unsigned int for new field and test/set/clear it like 'bio->bi_flags'.

Ming Lei (1):
  block: move .bd_inode into 1st cacheline of block_device

Yu Kuai (1):
  block: warn once for each partition in bio_check_ro()

 block/blk-core.c          | 14 +++++++++++---
 include/linux/blk_types.h |  4 +++-
 2 files changed, 14 insertions(+), 4 deletions(-)

-- 
2.39.2


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

end of thread, other threads:[~2023-11-29  1:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-28 12:30 [PATCH v4 0/2] block: warn once for each partition in bio_check_ro() Yu Kuai
2023-11-28 12:30 ` [PATCH v4 1/2] block: move .bd_inode into 1st cacheline of block_device Yu Kuai
2023-11-28 12:58   ` Christoph Hellwig
2023-11-28 12:30 ` [PATCH v4 2/2] block: warn once for each partition in bio_check_ro() Yu Kuai
2023-11-28 13:00   ` Christoph Hellwig
2023-11-29  1:13     ` Yu Kuai
2023-11-28 19:11 ` [PATCH v4 0/2] " Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox