[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20101105210454.GE2321@barkeeper1-xen.linbit>
Date: Fri, 5 Nov 2010 22:04:54 +0100
From: Lars Ellenberg <lars.ellenberg@...bit.com>
To: Mike Snitzer <snitzer@...hat.com>
Cc: linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org,
Jens Axboe <jaxboe@...ionio.com>, Neil Brown <neilb@...e.de>,
drbd-dev@...ts.linbit.com
Subject: Re: [Drbd-dev] [PATCH] block: read i_size with i_size_read()
On Fri, Nov 05, 2010 at 03:27:21PM -0400, Mike Snitzer wrote:
> Convert direct reads of an inode's i_size to using i_size_read().
>
> i_size_{read,write} use a seqcount to protect reads from accessing
> incomple writes. Concurrent i_size_write()s require mutual exclussion
> to protect the seqcount that is used by i_size_{read,write}. But
> i_size_read() callers do not need to use additional locking.
>
> Signed-off-by: Mike Snitzer <snitzer@...hat.com>
> Cc: Jens Axboe <jaxboe@...ionio.com>
> Cc: Neil Brown <neilb@...e.de>
> Cc: drbd-dev@...ts.linbit.com
> ---
> block/blk-core.c | 4 ++--
> block/compat_ioctl.c | 4 ++--
> block/ioctl.c | 6 +++---
> drivers/block/drbd/drbd_int.h | 2 +-
> drivers/md/md.c | 18 +++++++++---------
> 5 files changed, 17 insertions(+), 17 deletions(-)
DRBD one line fix trivially
Acked-by: Lars Ellenberg <lars.ellenberg@...bit.com>
> NOTE: I stopped short of fixing drbd and nbd to use revalidate_disk
> and/or i_size_write.
Ok, we'll pick up the DRBD part of it.
--
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com
DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists