public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] block: warn once for each partition in bio_check_ro()
@ 2023-11-21 11:19 Yu Kuai
  2023-11-21 11:19 ` [PATCH v2 1/2] block: introduce new field flags in block_device Yu Kuai
  2023-11-21 11:19 ` [PATCH v2 2/2] block: warn once for each partition in bio_check_ro() Yu Kuai
  0 siblings, 2 replies; 5+ messages in thread
From: Yu Kuai @ 2023-11-21 11:19 UTC (permalink / raw)
  To: ming.lei, axboe
  Cc: linux-block, linux-kernel, yukuai3, yukuai1, yi.zhang, yangerkun

From: Yu Kuai <yukuai3@huawei.com>

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'.

Yu Kuai (2):
  block: introduce new field flags in block_device
  block: warn once for each partition in bio_check_ro()

 block/bdev.c              | 15 ++++++++-------
 block/blk-core.c          | 21 +++++++++++++++------
 block/genhd.c             | 15 +++++++++++----
 block/ioctl.c             |  6 +++++-
 include/linux/blk_types.h | 28 ++++++++++++++++++++++------
 include/linux/blkdev.h    |  5 +++--
 6 files changed, 64 insertions(+), 26 deletions(-)

-- 
2.39.2


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

end of thread, other threads:[~2023-11-21 11:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-21 11:19 [PATCH v2 0/2] block: warn once for each partition in bio_check_ro() Yu Kuai
2023-11-21 11:19 ` [PATCH v2 1/2] block: introduce new field flags in block_device Yu Kuai
2023-11-21  9:33   ` Ming Lei
2023-11-21 11:06     ` Yu Kuai
2023-11-21 11:19 ` [PATCH v2 2/2] block: warn once for each partition in bio_check_ro() Yu Kuai

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