Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1169557

Re: [PATCH 14/15] libnvdimm: support read-only btt backing devices

From Christoph Hellwig <hch@lst.de>
Newsgroups linux.kernel
Subject Re: [PATCH 14/15] libnvdimm: support read-only btt backing devices
Date 2015-06-21 12:20 +0200
Message-ID <pDKw1-29u-5@gated-at.bofh.it> (permalink)
References <pCvpn-8ib-9@gated-at.bofh.it> <pCvpn-8ib-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Jun 17, 2015 at 07:56:02PM -0400, Dan Williams wrote:
> Upon detection of a read-only backing device arrange for the btt to
> device to be read only.  Implement a catch for the BLKROSET ioctl and
> only allow a btt-instance to become read-write when the backing-device
> becomes read-write.  Conversely, if a backing-device becomes read-only
> arrange for its parent btt to be marked read-only.  Synchronize these
> changes under the bus lock.

Eww.  I have to say the deeper I look into this code the more I hate
the stacking nature of btt.  It seems more and more we should never
attach pmem if we want to use a device with btt. 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 14/15] libnvdimm: support read-only btt backing devices Dan Williams <dan.j.williams@intel.com> - 2015-06-18 02:00 +0200
  Re: [PATCH 14/15] libnvdimm: support read-only btt backing devices Christoph Hellwig <hch@lst.de> - 2015-06-21 12:20 +0200
    Re: [PATCH 14/15] libnvdimm: support read-only btt backing devices Dan Williams <dan.j.williams@intel.com> - 2015-06-21 17:20 +0200
      Re: [PATCH 14/15] libnvdimm: support read-only btt backing devices Christoph Hellwig <hch@lst.de> - 2015-06-22 08:40 +0200

csiph-web