Thread (18 messages) 18 messages, 6 authors, 2019-03-25

Re: [PATCH v2 1/3] block: bio: kill BIO_SEG_VALID flag

From: Hannes Reinecke <hare@suse.de>
Date: 2019-03-22 14:06:42
Also in: linux-fsdevel

On 3/22/19 2:13 PM, Johannes Thumshirn wrote:
From: Jens Axboe <axboe@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 <axboe@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 <redacted>
---
  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@suse.com>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		   Teamlead Storage & Networking
hare@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)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help