lkml.org 
[lkml]   [2015]   [Jun]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 14/15] libnvdimm: support read-only btt backing devices
From
Date
On Wed, 2015-06-17 at 19:56 -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.
>
> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
> ---
> drivers/nvdimm/blk.c | 4 +++
> drivers/nvdimm/btt.c | 34 ++++++++++++++++++++++++++--
> drivers/nvdimm/btt_devs.c | 42 ++++++++++++++++++++++++++++++++++
> drivers/nvdimm/bus.c | 55 +++++++++++++++++++++++++++++++++++++++++++++
> drivers/nvdimm/nd-core.h | 14 +++++++++++
> drivers/nvdimm/nd.h | 4 +++
> drivers/nvdimm/pmem.c | 4 +++
> 7 files changed, 154 insertions(+), 3 deletions(-)

Reviewed-by: Vishal Verma <vishal.l.verma@intel.com>




\
 
 \ /
  Last update: 2015-06-19 01:21    [W:0.144 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site