Re: [PATCH 1/4] block: move holder tracking from struct block_device to hd_struct

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

 



On 12/6/18 5:48 PM, Thadeu Lima de Souza Cascardo wrote:
From: Christoph Hellwig <hch@xxxxxx>

We'd like to track the slaves and holder for nvme multipath devices
in the same standard fashion as all the other stacked block devices
to make the life for things like distro installers easy.

But struct block_device only exists while we have open instances,
which we never have for the underlying devices of a nvme-multipath
setup.  But we can easily move the older list into struct hd_struct
which exists all the time the block device exists, the only interesting
bit is that we need a new mutex for it.

Signed-off-by: Christoph Hellwig <hch@xxxxxx>
---
  block/genhd.c                |  4 +++
  block/partition-generic.c    |  4 +++
  drivers/block/drbd/drbd_nl.c |  4 +--
  drivers/md/bcache/super.c    |  8 +++---
  drivers/md/dm.c              |  4 +--
  drivers/md/md.c              |  4 +--
  fs/block_dev.c               | 48 ++++++++++++++++--------------------
  include/linux/fs.h           | 11 +++------
  include/linux/genhd.h        |  4 +++
  9 files changed, 47 insertions(+), 44 deletions(-)

Reviewed-by: Hannes Reinecke <hare@xxxxxxxx>

Cheers,

Hannes
--
Dr. Hannes Reinecke		   Teamlead Storage & Networking
hare@xxxxxxx			               +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)



[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