Skip to contentSkip to conversation

linux-next: build failure after merge of the block tree

PATCH Stephen Rothwell 2 participants 2 messages Nov 8, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi Jens,

After merging the block tree, today's linux-next build (arm multi_v7_defconfig) failed like this:

block/blk-flush.c: In function 'flush_data_end_io':
block/blk-flush.c:369:20: error: 'REQ_STARTED' undeclared (first use in this function)

  rq->cmd_flags &= ~REQ_STARTED;
                    ^

Caused by commit

e806402130c9 ("block: split out request-only flags into a new namespace")

interacting with commit

94d7dea448fa ("block: flush: fix IO hang in case of flood fua req")

from Linus' tree (v4.9-rc3).

I have applied the following merge fix patch for today (I don't know if this is correct, but it does build):

From: Stephen Rothwell <[email protected]>
Date: Tue, 8 Nov 2016 14:08:03 +1100
Subject: [PATCH] block: fixup for "split out request-only flags into a new namespace"

---
 block/blk-flush.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block/blk-flush.c +1 -1
index 0a02e765fa14..0bef7432d725 100644
@@ -366,7 +366,7 @@ static void flush_data_end_io(struct request *rq, int error)
 	elv_completed_request(q, rq);
 
 	/* for avoiding double accounting */
-	rq->cmd_flags &= ~REQ_STARTED;
+	rq->rq_flags &= ~RQF_STARTED;
 
 	/*
 	 * After populating an empty queue, kick it to avoid stall.  Read
Signature · 5 lines
2.10.2

-- 
Cheers,
Stephen Rothwell
maintainer
#1 lore raw
Quoted 14 lines · Stephen Rothwell

Hi Jens,

After merging the block tree, today's linux-next build (arm multi_v7_defconfig) failed like this:

block/blk-flush.c: In function 'flush_data_end_io':
block/blk-flush.c:369:20: error: 'REQ_STARTED' undeclared (first use in this function)

  rq->cmd_flags &= ~REQ_STARTED;
                    ^

Caused by commit

e806402130c9 ("block: split out request-only flags into a new namespace")

Quoted 8 lines

interacting with commit

94d7dea448fa ("block: flush: fix IO hang in case of flood fua req")

from Linus' tree (v4.9-rc3).

I have applied the following merge fix patch for today (I don't know if this is correct, but it does build):

It's correct, it needs to be applied if merging with master. It will throw a real conflict as well, but this one tends to fly under the radar since it merges cleanly.

I'll merge master into my for-next so you don't have to carry extra patches for this.

Signature · 1 line
Jens Axboe