linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: drbd tree build failure
@ 2009-07-27  5:48 Stephen Rothwell
  2009-07-27  8:09 ` Lars Ellenberg
  0 siblings, 1 reply; 26+ messages in thread
From: Stephen Rothwell @ 2009-07-27  5:48 UTC (permalink / raw)
  To: Philipp Reisner; +Cc: linux-next, linux-kernel, Rusty Russell, Lars Ellenberg

[-- Attachment #1: Type: text/plain, Size: 766 bytes --]

Hi Philipp,

Today's linux-next build (x86_64 allmodconfig) failed like this:

drivers/block/drbd/drbd_main.c: In function 'drbd_thread_current_set_cpu':
drivers/block/drbd/drbd_main.c:1592: error: implicit declaration of function 'set_cpus_allowed'

Introduced by commit 8a4ebc3fbd90072ac870064a930fe612eea6d9a1 ("DRBD:
main") from the drbd interacting with commit
84cf7f02712e3491fb9776f950a8c4f413204c8b
("cpumask:remove-set_cpus_allowed") from the rr tree.

I am not sure what the transformation to the new infrastructure is here -
maybe Rusty can help?

For today, I have reverted the rr tree commit above but we need a better
solution.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 26+ messages in thread
* linux-next: drbd tree build failure
@ 2009-07-27  7:37 Stephen Rothwell
  2009-07-27  9:09 ` Philipp Reisner
  0 siblings, 1 reply; 26+ messages in thread
From: Stephen Rothwell @ 2009-07-27  7:37 UTC (permalink / raw)
  To: Philipp Reisner; +Cc: linux-next, linux-kernel

Hi Philipp,

Today's linux-next build (powerpc allyesconfig) failed like this:

drivers/block/drbd/drbd_trace.o: In function `.roles_to_name':
(.text+0x64): multiple definition of `.roles_to_name'
drivers/block/drbd/drbd.o:(.text+0x28eb8): first defined here
drivers/block/drbd/drbd_trace.o: In function `disks_to_name':
(.opd+0x30): multiple definition of `disks_to_name'
drivers/block/drbd/drbd.o:(.opd+0x1b78): first defined here
drivers/block/drbd/drbd_trace.o: In function `roles_to_name':
(.opd+0x18): multiple definition of `roles_to_name'
drivers/block/drbd/drbd.o:(.opd+0x1b60): first defined here
drivers/block/drbd/drbd_trace.o: In function `.conns_to_name':
(.text+0x0): multiple definition of `.conns_to_name'
drivers/block/drbd/drbd.o:(.text+0x28e54): first defined here
drivers/block/drbd/drbd_trace.o: In function `set_st_err_name':
(.opd+0x48): multiple definition of `set_st_err_name'
drivers/block/drbd/drbd.o:(.opd+0x1b90): first defined here
drivers/block/drbd/drbd_trace.o: In function `.disks_to_name':
(.text+0xcc): multiple definition of `.disks_to_name'
drivers/block/drbd/drbd.o:(.text+0x28f20): first defined here
drivers/block/drbd/drbd_trace.o: In function `conns_to_name':
(.opd+0x0): multiple definition of `conns_to_name'
drivers/block/drbd/drbd.o:(.opd+0x1b48): first defined here
drivers/block/drbd/drbd_trace.o: In function `.set_st_err_name':
(.text+0x134): multiple definition of `.set_st_err_name'
drivers/block/drbd/drbd.o:(.text+0x28f88): first defined here

I applied the following patch to mark DRBD_TRACE broken for now.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Mon, 27 Jul 2009 17:27:39 +1000
Subject: [PATCH] drbd: tracing is broken

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 drivers/block/drbd/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/block/drbd/Kconfig b/drivers/block/drbd/Kconfig
index 8b14ea2..b047662 100644
--- a/drivers/block/drbd/Kconfig
+++ b/drivers/block/drbd/Kconfig
@@ -41,6 +41,7 @@ config BLK_DEV_DRBD
 config DRBD_TRACE
 	tristate "DRBD tracing"
 	depends on BLK_DEV_DRBD
+	depends on BROKEN
 	select TRACEPOINTS
 	default m
 	help
-- 
1.6.3.3

^ permalink raw reply related	[flat|nested] 26+ messages in thread
* linux-next: drbd tree build failure
@ 2009-07-29  5:29 Stephen Rothwell
  2009-07-29  6:20 ` Jens Axboe
  0 siblings, 1 reply; 26+ messages in thread
From: Stephen Rothwell @ 2009-07-29  5:29 UTC (permalink / raw)
  To: Philipp Reisner; +Cc: linux-next, linux-kernel, Jens Axboe

Hi Philipp,

Today's linux-next build (x86_64 allmodconfig) failed like this:

drivers/block/drbd/drbd_req.c: In function 'drbd_make_request_26':
drivers/block/drbd/drbd_req.c:1023: error: implicit declaration of function 'bio_barrier'
drivers/block/drbd/drbd_actlog.c: In function '_drbd_md_sync_page_io':
drivers/block/drbd/drbd_actlog.c:120: error: implicit declaration of function 'bio_barrier'
drivers/block/drbd/drbd_main.c: In function 'drbd_send_dblock':
drivers/block/drbd/drbd_main.c:2373: error: implicit declaration of function 'bio_barrier'
drivers/block/drbd/drbd_main.c:2375: error: implicit declaration of function 'bio_sync'

Caused by commit d206aaff0c5ee065f382c626ea21c5166a3047a7 ("bio: first
step in sanitizing the bio->bi_rw flag testing") from the block tree.

I applied the following patch for today.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Wed, 29 Jul 2009 15:13:31 +1000
Subject: [PATCH] drbd: fixups for block api changes

bio_barrier() and bio_sync() are going away.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 drivers/block/drbd/drbd_actlog.c |    2 +-
 drivers/block/drbd/drbd_main.c   |    4 ++--
 drivers/block/drbd/drbd_req.c    |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/block/drbd/drbd_actlog.c b/drivers/block/drbd/drbd_actlog.c
index 1e53d16..3851869 100644
--- a/drivers/block/drbd/drbd_actlog.c
+++ b/drivers/block/drbd/drbd_actlog.c
@@ -117,7 +117,7 @@ static int _drbd_md_sync_page_io(struct drbd_conf *mdev,
 	/* check for unsupported barrier op.
 	 * would rather check on EOPNOTSUPP, but that is not reliable.
 	 * don't try again for ANY return value != 0 */
-	if (unlikely(bio_barrier(bio) && !ok)) {
+	if (unlikely(bio_rw_flagged(bio, BIO_RW_BARRIER) && !ok)) {
 		/* Try again with no barrier */
 		dev_warn(DEV, "Barriers not supported on meta data device - disabling\n");
 		set_bit(MD_NO_BARRIER, &mdev->flags);
diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c
index 20f4d40..9e051a8 100644
--- a/drivers/block/drbd/drbd_main.c
+++ b/drivers/block/drbd/drbd_main.c
@@ -2370,9 +2370,9 @@ int drbd_send_dblock(struct drbd_conf *mdev, struct drbd_request *req)
 	/* NOTE: no need to check if barriers supported here as we would
 	 *       not pass the test in make_request_common in that case
 	 */
-	if (bio_barrier(req->master_bio))
+	if (bio_rw_flagged(req->master_bio, BIO_RW_BARRIER))
 		dp_flags |= DP_HARDBARRIER;
-	if (bio_sync(req->master_bio))
+	if (bio_rw_flagged(req->master_bio, BIO_RW_SYNCIO))
 		dp_flags |= DP_RW_SYNC;
 	if (mdev->state.conn >= C_SYNC_SOURCE &&
 	    mdev->state.conn <= C_PAUSED_SYNC_T)
diff --git a/drivers/block/drbd/drbd_req.c b/drivers/block/drbd/drbd_req.c
index d2b941c..fc8d835 100644
--- a/drivers/block/drbd/drbd_req.c
+++ b/drivers/block/drbd/drbd_req.c
@@ -1020,7 +1020,7 @@ int drbd_make_request_26(struct request_queue *q, struct bio *bio)
 	 * because of those XXX, this is not yet enabled,
 	 * i.e. in drbd_init_set_defaults we set the NO_BARRIER_SUPP bit.
 	 */
-	if (unlikely(bio_barrier(bio) && test_bit(NO_BARRIER_SUPP, &mdev->flags))) {
+	if (unlikely(bio_rw_flagged(bio, BIO_RW_BARRIER) && test_bit(NO_BARRIER_SUPP, &mdev->flags))) {
 		/* dev_warn(DEV, "Rejecting barrier request as underlying device does not support\n"); */
 		bio_endio(bio, -EOPNOTSUPP);
 		return 0;
-- 
1.6.3.3

^ permalink raw reply related	[flat|nested] 26+ messages in thread
* linux-next: drbd tree build failure
@ 2009-07-29  5:29 Stephen Rothwell
  2009-07-29  5:47 ` Martin K. Petersen
  0 siblings, 1 reply; 26+ messages in thread
From: Stephen Rothwell @ 2009-07-29  5:29 UTC (permalink / raw)
  To: Philipp Reisner
  Cc: Jens Axboe, linux-next-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA, Petersen,
	Martin-63ez5xqkn6DQT0dZR+AlfA

Hi Philipp,

Today's linux-next build (x86_64 allmodconfig) failed like this:

drivers/block/drbd/drbd_nl.c: In function 'drbd_setup_queue_param':
drivers/block/drbd/drbd_nl.c:707: error: implicit declaration of function 'blk_queue_stack_limits'

Caused by commit 6dc986e736ca1e76a45d025a920f3a66855fc2aa ("block:
Deprecate blk_queue_stack_limits") from the block tree.

I have applied the following patch for today.
-- 
Cheers,
Stephen Rothwell                    sfr-3FnU+UHB4dNDw9hX6IcOSA@public.gmane.org

From: Stephen Rothwell <sfr-3FnU+UHB4dNDw9hX6IcOSA@public.gmane.org>
Date: Wed, 29 Jul 2009 15:25:23 +1000
Subject: [PATCH] drbd: fix for removal of blk_queue_stack_limits

Signed-off-by: Stephen Rothwell <sfr-3FnU+UHB4dNDw9hX6IcOSA@public.gmane.org>
---
 drivers/block/drbd/drbd_nl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/block/drbd/drbd_nl.c b/drivers/block/drbd/drbd_nl.c
index 1e87ad0..0ec86e8 100644
--- a/drivers/block/drbd/drbd_nl.c
+++ b/drivers/block/drbd/drbd_nl.c
@@ -704,7 +704,7 @@ void drbd_setup_queue_param(struct drbd_conf *mdev, unsigned int max_seg_s) __mu
 	blk_queue_max_segment_size(q, max_seg_s);
 	blk_queue_logical_block_size(q, 512);
 	blk_queue_segment_boundary(q, PAGE_SIZE-1);
-	blk_queue_stack_limits(q, b);
+	blk_stack_limits(&q->limits, &b->limits, 0);
 
 	if (b->merge_bvec_fn)
 		dev_warn(DEV, "Backing device's merge_bvec_fn() = %p\n",
-- 
1.6.3.3

^ permalink raw reply related	[flat|nested] 26+ messages in thread
* linux-next: drbd tree build failure
@ 2009-09-15  6:07 Stephen Rothwell
  2009-09-15  6:23 ` Jens Axboe
  0 siblings, 1 reply; 26+ messages in thread
From: Stephen Rothwell @ 2009-09-15  6:07 UTC (permalink / raw)
  To: Philipp Reisner, drbd-dev
  Cc: linux-next, linux-kernel, Nikanth Karthikesan, Jens Axboe

Hi Philipp,

Today's linux-next build (x86_64 allmodconfig) failed like this:

drivers/block/drbd/drbd_req.c: In function '_drbd_start_io_acct':
drivers/block/drbd/drbd_req.c:45: error: lvalue required as increment operand
drivers/block/drbd/drbd_req.c: In function '_drbd_end_io_acct':
drivers/block/drbd/drbd_req.c:58: error: lvalue required as decrement operand

Caused by commit 954749162c98ca45c42cbc00c9ed6d5d6c0b8bb7 ("DRBD:
request") from the drbd tree interacting with commit
a9327cac440be4d8333bba975cbbf76045096275 ("Seperate read and write
statistics of in_flight requests") from the block tree.

I have applied the following merge fix for today, but there may be a
better fix.

From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Tue, 15 Sep 2009 16:03:50 +1000
Subject: [PATCH] drbd: fix for in_flight change in block tree

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 drivers/block/drbd/drbd_req.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/block/drbd/drbd_req.c b/drivers/block/drbd/drbd_req.c
index cbdc257..0656cf1 100644
--- a/drivers/block/drbd/drbd_req.c
+++ b/drivers/block/drbd/drbd_req.c
@@ -42,7 +42,7 @@ static void _drbd_start_io_acct(struct drbd_conf *mdev, struct drbd_request *req
 	part_stat_inc(cpu, &mdev->vdisk->part0, ios[rw]);
 	part_stat_add(cpu, &mdev->vdisk->part0, sectors[rw], bio_sectors(bio));
 	part_stat_unlock();
-	mdev->vdisk->part0.in_flight++;
+	mdev->vdisk->part0.in_flight[rw]++;
 }
 
 /* Update disk stats when completing request upwards */
@@ -55,7 +55,7 @@ static void _drbd_end_io_acct(struct drbd_conf *mdev, struct drbd_request *req)
 	part_stat_add(cpu, &mdev->vdisk->part0, ticks[rw], duration);
 	part_round_stats(cpu, &mdev->vdisk->part0);
 	part_stat_unlock();
-	mdev->vdisk->part0.in_flight--;
+	mdev->vdisk->part0.in_flight[rw]--;
 }
 
 static void _req_is_done(struct drbd_conf *mdev, struct drbd_request *req, const int rw)
-- 
1.6.3.3


-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

^ permalink raw reply related	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2009-09-15 14:03 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-27  5:48 linux-next: drbd tree build failure Stephen Rothwell
2009-07-27  8:09 ` Lars Ellenberg
2009-07-27 17:17   ` Philipp Reisner
2009-07-28  4:20     ` Stephen Rothwell
2009-07-29  1:40       ` Rusty Russell
2009-07-29 15:11         ` Philipp Reisner
2009-07-27  7:37 Stephen Rothwell
2009-07-27  9:09 ` Philipp Reisner
2009-07-27 11:38   ` Alexander Beregalov
2009-07-27 15:07     ` Philipp Reisner
2009-07-28  4:19       ` Stephen Rothwell
2009-07-28  4:20   ` Stephen Rothwell
2009-07-29  5:29 Stephen Rothwell
2009-07-29  6:20 ` Jens Axboe
2009-07-29 15:13   ` Philipp Reisner
2009-07-29  5:29 Stephen Rothwell
2009-07-29  5:47 ` Martin K. Petersen
2009-07-29  6:17   ` Stephen Rothwell
2009-08-18  5:32   ` Stephen Rothwell
2009-08-18  6:01     ` Martin K. Petersen
2009-09-15  6:07 Stephen Rothwell
2009-09-15  6:23 ` Jens Axboe
2009-09-15  6:53   ` Stephen Rothwell
     [not found]     ` <20090915165309.f07381ec.sfr-3FnU+UHB4dNDw9hX6IcOSA@public.gmane.org>
2009-09-15  6:57       ` Jens Axboe
2009-09-15  7:45         ` Stephen Rothwell
2009-09-15 14:03       ` Philipp Reisner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).