On 3/22/19 2:13 PM, Johannes Thumshirn wrote:
From: Jens Axboe <ax...@kernel.dk>
Kill the BIO_SEG_VALID flag. We should just use ->bi_phys_segments to tell
if it's valid or not.
This patch uses -1 to signify it's not.
Signed-off-by: Jens Axboe <ax...@kernel.dk>
[ jth initialize pc bios with 1 phys segment and WARN if we're submitting
bios with -1 segments ]
Signed-off-by: Johannes Thumshirn <jthumsh...@suse.de>
---
block/bio.c | 15 +++++++++------
block/blk-core.c | 1 +
block/blk-merge.c | 13 ++++++-------
drivers/md/raid5.c | 2 +-
include/linux/blk_types.h | 1 -
5 files changed, 17 insertions(+), 15 deletions(-)
Reviewed-by: Hannes Reinecke <h...@suse.com>
Cheers,
Hannes
--
Dr. Hannes Reinecke Teamlead Storage & Networking
h...@suse.de +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Felix Imendörffer, Mary Higgins, Sri Rasiah
HRB 21284 (AG Nürnberg)