lkml.org 
[lkml]   [2021]   [Oct]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 3/4] libnvdimm/blk: implement ->set_read_only to hook into BLKROSET processing
Date
Implement the ->set_read_only method for nd_blk.

Signed-off-by: Huaisheng Ye <huaisheng.ye@intel.com>
---
drivers/nvdimm/blk.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/nvdimm/blk.c b/drivers/nvdimm/blk.c
index 088d3dd6f6fa..9d76980ebff7 100644
--- a/drivers/nvdimm/blk.c
+++ b/drivers/nvdimm/blk.c
@@ -226,6 +226,7 @@ static int nsblk_rw_bytes(struct nd_namespace_common *ndns,
static const struct block_device_operations nd_blk_fops = {
.owner = THIS_MODULE,
.submit_bio = nd_blk_submit_bio,
+ .set_read_only = nd_set_ro,
};

static void nd_blk_release_disk(void *disk)
--
2.27.0
\
 
 \ /
  Last update: 2021-10-27 14:11    [W:0.092 / U:1.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site