Re: [PATCH 3/8] block: move bd_mutex to struct gendisk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/25/21 8:12 AM, Christoph Hellwig wrote:
Replace the per-block device bd_mutex with a per-gendisk open_mutex,
thus simplifying locking wherever we deal with partitions.

Signed-off-by: Christoph Hellwig <hch@xxxxxx>
---
  Documentation/filesystems/locking.rst |  2 +-
  block/genhd.c                         |  7 ++---
  block/partitions/core.c               | 24 ++++++++---------
  drivers/block/loop.c                  | 14 +++++-----
  drivers/block/xen-blkfront.c          |  8 +++---
  drivers/block/zram/zram_drv.c         | 18 ++++++-------
  drivers/block/zram/zram_drv.h         |  2 +-
  drivers/md/md.h                       |  6 ++---
  drivers/s390/block/dasd_genhd.c       |  8 +++---
  drivers/scsi/sd.c                     |  4 +--
  fs/block_dev.c                        | 37 +++++++++++----------------
  fs/btrfs/volumes.c                    |  2 +-
  fs/super.c                            |  8 +++---
  include/linux/blk_types.h             |  1 -
  include/linux/genhd.h                 |  3 +++
  15 files changed, 68 insertions(+), 76 deletions(-)
Reviewed-by: Hannes Reinecke <hare@xxxxxxx>

Cheers,

Hannes
--
Dr. Hannes Reinecke                Kernel Storage Architect
hare@xxxxxxx                              +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux