Thread (25 messages) 25 messages, 5 authors, 2021-06-01

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

From: Hannes Reinecke <hare@suse.de>
Date: 2021-05-25 08:08:12
Also in: linux-block, linux-s390, linux-scsi

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@lst.de>
---
  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@suse.de>
Cheers,

Hannes
-- 
Dr. Hannes Reinecke                Kernel Storage Architect
hare@suse.de                              +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help