[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+55aFxrBghonjRvS=KK=5Oqw_Wj9PDh2wkDtVh7U9jw8=uTsA@mail.gmail.com>
Date: Thu, 3 May 2012 11:23:53 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: "H. Peter Anvin" <hpa@...or.com>
Cc: Al Viro <viro@...iv.linux.org.uk>, Nick Piggin <npiggin@...il.com>,
Jana Saout <jana@...ut.de>, Joel Becker <jlbec@...lplan.org>,
linux-kernel@...r.kernel.org
Subject: Re: Oops with DCACHE_WORD_ACCESS and ocfs2, autofs4
On Thu, May 3, 2012 at 11:13 AM, H. Peter Anvin <hpa@...or.com> wrote:
>
> Just from a cleanliness point of view, I don't think you need the
> __WORDSUFFIX for any of these instructions (it is only required if it
> would be ambiguous, but the register names should deal with it.)
I get nervous about those kinds of things, but you are probably right.
> I think you want to drop the shl instruction. You're loading what
> should end up at the LSB end of the register into the MSB end of the
> register, so shr is all you should need.
Right you are.
Jana - never mind that patch. It will avoid the page fault, but try to
use the wrong (truncated) name due to the extraneous left-shift of the
loaded value.
So use the attached one instead. It just removes the extra shift that
Peter noticed, and also allows the use of the word-at-a-time code with
DEBUG_PAGEALLOC so that I can test it myself too.
I left the instruction suffixes in place, although Peter is probably
right that the assembler will do the right thing.
Linus
Download attachment "patch.diff" of type "application/octet-stream" (4074 bytes)
Powered by blists - more mailing lists