[PATCH] null_blk: fix checking for REQ_FUA

2019-02-22 Thread Heinz Mauelshagen
null_handle_bio() erroneously uses the bio_op macro which masks respective request flag bits including REQ_FUA out thus failing the check. Fix by checking bio->bi_opf directly. Signed-off-by: Heinz Mauelshagen --- drivers/block/null_blk_main.c | 2 +- 1 file changed, 1 insertion(+), 1 delet

Re: [dm-devel] block: Fix a WRITE SAME BUG_ON

2019-02-01 Thread Heinz Mauelshagen
On 2/1/19 3:09 PM, John Dorminy wrote: I didn't know such a thing existed... does it work on any block device? Where do I read more about this? Use sg_write_same(8) from package sg3_utils. For instance 'sg_write_same --in=foobarfile --lba=0 --num=2 --xferlen=512 /dev/sdwhatever' will r

Re: [dm-devel] [PATCH 0/2] dm: add new loop and ram targets

2018-01-24 Thread Heinz Mauelshagen
On 22/01/18 21:19, Christoph Hellwig wrote: On Wed, Jan 17, 2018 at 08:33:59PM +0100, Heinz Mauelshagen wrote: Enhancing IO performance compared to the kernels existing loop driver thus better suiting respective requirements in test setups, this patch series adds new "loop" and &qu