All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jens Axboe <jens.axboe@oracle.com>
To: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: Christian Kujau <lists@nerdbynature.de>,
	Heinz Diehl <htd@fancy-poultry.org>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: todays git regression (2.6.32-04008.g3ff6a46): lot of device mapper warnings
Date: Tue, 15 Dec 2009 23:16:23 +0100	[thread overview]
Message-ID: <20091215221623.GH28252@kernel.dk> (raw)
In-Reply-To: <yq14onrubyq.fsf@sermon.lab.mkp.net>

On Tue, Dec 15 2009, Martin K. Petersen wrote:
> >>>>> "Jens" == Jens Axboe <jens.axboe@oracle.com> writes:
> 
> Jens> I'll revert the bad commit tomorrow so that -rc1 wont be affected,
> Jens> at least.
> 
> I'm pretty close to having a new stacking algorithm that works.  If I
> don't have it ready by tomorrow maybe we should commit the following
> patch instead of reverting the discard changes wholesale?
> 
> diff --git a/block/blk-settings.c b/block/blk-settings.c
> index dd1f1e0..65ae861 100644
> --- a/block/blk-settings.c
> +++ b/block/blk-settings.c
> @@ -555,10 +555,8 @@ int blk_stack_limits(struct queue_limits *t, struct queue_limits *b,
>  	}
>  
>  	if (offset &&
> -	    (offset & (b->discard_granularity - 1)) != b->discard_alignment) {
> +	    (offset & (b->discard_granularity - 1)) != b->discard_alignment)
>  		t->discard_misaligned = 1;
> -		ret = -1;
> -	}
>  
>  	/* If top has no alignment offset, inherit from bottom */
>  	if (!t->alignment_offset)

I guess we could do that, as long as it gets really fixed before 2.6.33.
It's a bit ugly to be exporting the device as misaligned, when it's
really just a fudged internally.

-- 
Jens Axboe


      reply	other threads:[~2009-12-15 22:16 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-09  9:49 todays git regression (2.6.32-04008.g3ff6a46): lot of device mapper warnings Christian Borntraeger
2009-12-09 21:25 ` Heinz Diehl
2009-12-09 21:45   ` Jens Axboe
2009-12-09 22:07     ` Jens Axboe
2009-12-10  0:56       ` Mike Snitzer
2009-12-10  0:56         ` Mike Snitzer
2009-12-10  1:14         ` Martin K. Petersen
2009-12-10  1:14           ` Martin K. Petersen
2009-12-11  9:28           ` Christian Borntraeger
2009-12-11  9:28             ` Christian Borntraeger
2009-12-11 16:47             ` Martin K. Petersen
2009-12-11 16:47               ` [dm-devel] " Martin K. Petersen
2009-12-10 11:08       ` Christian Borntraeger
2009-12-10 14:08         ` Heinz Diehl
2009-12-12  1:51       ` Christian Kujau
2009-12-15 21:58       ` Christian Kujau
2009-12-15 22:02         ` Jens Axboe
2009-12-15 22:08           ` Martin K. Petersen
2009-12-15 22:16             ` Jens Axboe [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091215221623.GH28252@kernel.dk \
    --to=jens.axboe@oracle.com \
    --cc=htd@fancy-poultry.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lists@nerdbynature.de \
    --cc=martin.petersen@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.