On 3/22/19 2:13 PM, Johannes Thumshirn wrote:
From: Jens Axboe <axboe@xxxxxxxxx> 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 <axboe@xxxxxxxxx> [ jth initialize pc bios with 1 phys segment and WARN if we're submitting bios with -1 segments ] Signed-off-by: Johannes Thumshirn <jthumshirn@xxxxxxx> --- 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 <hare@xxxxxxxx> Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@xxxxxxx +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)