Re: [PATCH 30/49] ext4: Convert truncate_mutex to read write semaphore.

2008-01-24 Thread Andy Whitcroft
On Wed, Jan 23, 2008 at 02:06:59PM -0800, Andrew Morton wrote: > > On Mon, 21 Jan 2008 22:02:09 -0500 "Theodore Ts'o" <[EMAIL PROTECTED]> > > wrote: > > +int ext4_get_blocks_wrap(handle_t *handle, struct inode *inode, sector_t > > block, > > + unsigned long max_blocks, struct bu

Re: [PATCH 30/49] ext4: Convert truncate_mutex to read write semaphore.

2008-01-23 Thread Aneesh Kumar K.V
On Wed, Jan 23, 2008 at 02:06:59PM -0800, Andrew Morton wrote: > > On Mon, 21 Jan 2008 22:02:09 -0500 "Theodore Ts'o" <[EMAIL PROTECTED]> > > wrote: > > +int ext4_get_blocks_wrap(handle_t *handle, struct inode *inode, sector_t > > block, > > + unsigned long max_blocks, struct bu

Re: [PATCH 30/49] ext4: Convert truncate_mutex to read write semaphore.

2008-01-23 Thread Andrew Morton
> On Mon, 21 Jan 2008 22:02:09 -0500 "Theodore Ts'o" <[EMAIL PROTECTED]> wrote: > +int ext4_get_blocks_wrap(handle_t *handle, struct inode *inode, sector_t > block, > + unsigned long max_blocks, struct buffer_head *bh, > + int create, int extend_disksize) >

[PATCH 30/49] ext4: Convert truncate_mutex to read write semaphore.

2008-01-21 Thread Theodore Ts'o
From: Aneesh Kumar K.V <[EMAIL PROTECTED]> We are currently taking the truncate_mutex for every read. This would have performance impact on large CPU configuration. Convert the lock to read write semaphore and take read lock when we are trying to read the file. Signed-off-by: Aneesh Kumar K.V <[E