From: Boaz Harrosh on
Linus please pull:
git://git.open-osd.org/linux-open-osd.git for-linus

To receive the following two fixes for the 2.6.33 Kernel.

. The first problem was found when integrating pnfs-tree with 2.6.33-rc1
. The second problem was found by running a git-clone of a very large Linux tree
on a memory tight system, with these new very large pack files of recent. Actually
I think only git clone is able to produce a workload to exercise this bug.
(up until now git has found 85% of my bugs it's my number one test. Other 15% is
compilation of a kernel, all the synthetic tests are good for nothing)

commit 89be503021f550575fc896671b569941140b2c2e
Author: Boaz Harrosh <bharrosh(a)panasas.com>
Date: Mon Dec 21 16:36:23 2009 +0200

exofs: fix pnfs_osd re-definitions in pre-pnfs trees

Some on disk exofs constants and types are defined in the pnfs_osd_xdr.h
file. Since we needed these types before the pnfs-objects code was
accepted to mainline we duplicated the minimal needed definitions into
an exofs local header. The definitions where conditionally included
depending on !CONFIG_PNFS defined. So if PNFS was present in the tree
definitions are taken from there and if not they are defined locally.

That was all good but, the CONFIG_PNFS is planed to be included upstream
before the pnfs-objects is also included. (The first pnfs batch might be
pnfs-files only)

So condition exofs local definitions on the absence of pnfs_osd_xdr.h
inclusion (__PNFS_OSD_XDR_H__ not defined). User code must make sure
that in future pnfs_osd_xdr.h will be included before fs/exofs/pnfs.h,
which happens to be so in current code.

Once pnfs-objects hits mainline, exofs's local header will be removed.

Signed-off-by: Boaz Harrosh <bharrosh(a)panasas.com>

fs/exofs/pnfs.h | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)

commit efd124b999fb4d426b30675f1684521af0872789
Author: Boaz Harrosh <bharrosh(a)panasas.com>
Date: Sun Dec 27 17:01:42 2009 +0200

exofs: simple_write_end does not mark_inode_dirty

exofs uses simple_write_end() for it's .write_end handler. But
it is not enough because simple_write_end() does not call
mark_inode_dirty() when it extends i_size. So even if we do
call mark_inode_dirty at beginning of write out, with a very
long IO and a saturated system we might get the .write_inode()
called while still extend-writing to file and miss out on the last
i_size updates.

So override .write_end, call simple_write_end(), and afterwords if
i_size was changed call mark_inode_dirty().

It stands to logic that since simple_write_end() was the one extending
i_size it should also call mark_inode_dirty(). But it looks like all
users of simple_write_end() are memory-bound pseudo filesystems, who
could careless about mark_inode_dirty(). I might submit a
warning-comment patch to simple_write_end() in future.

CC: Stable <stable(a)kernel.org>
Signed-off-by: Boaz Harrosh <bharrosh(a)panasas.com>

fs/exofs/inode.c | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)

Thanks in advance
Boaz
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo(a)vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/