[PATCH v2 0/2] block: warn once for each partition in bio_check_ro()

Yu Kuai posted 2 patches 2 years ago
There is a newer version of this series
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(-)
[PATCH v2 0/2] block: warn once for each partition in bio_check_ro()
Posted by Yu Kuai 2 years ago
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