Quantcast
Channel: lkml.org : Pallipadi, Venkatesh
Viewing all articles
Browse latest Browse all 864

Re: LVM snapshot broke between 4.14 and 4.16

$
0
0
Linus Torvalds writes: (Summary) Turn the "you did a write request on a RO disk" into a WARN_ON_ONCE() instead of a hard error.
error.
Something like the attached patch.
Something like the attached patch.
WGH, do you build your own kernels? 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/block/blk-core.c b/block/blk-core.c index f84a9b7b6f5a..95ca45bc4fc9 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -2155,11 +2155,12 @@ static inline bool bio_check_ro(struct bio *bio, struct hd_struct *part) if (part->policy && - printk(KERN_ERR + WARN_ONCE( "generic_make_request: Trying to write " "to read-only block-device %s (partno %d)\n", bio_devname(bio, b), part->partno);

Viewing all articles
Browse latest Browse all 864

Trending Articles