Re: [PATCH 2/2] Add batched discard support for ext3

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jan Kara
Date: Monday, July 12, 2010 - 12:57 pm

On Mon 12-07-10 17:58:46, Lukas Czerner wrote:
  Consider just a simple race:

  thread A:			thread B:

  allocate blocks in group G
  				set bits for free blocks in group G
  transaction with allocation
    commits - bitmap has bits
    from thread B set
----------------------------------------------- crash
  After a journal replay we have just leaked blocks set in the bitmap
by thread B...
  And there are probably races with worse consequences. This is just the
simplest one.

								Honza
-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Ext3: batched discard support, Lukas Czerner, (Wed Jul 7, 6:18 am)
[PATCH 1/2] Add discard/nodiscard mount option for ext3, Lukas Czerner, (Wed Jul 7, 6:18 am)
[PATCH 2/2] Add batched discard support for ext3, Lukas Czerner, (Wed Jul 7, 6:18 am)
Re: Ext3: batched discard support, Greg Freemyer, (Wed Jul 7, 12:14 pm)
Re: Ext3: batched discard support, Lukas Czerner, (Fri Jul 9, 1:53 am)
Re: Ext3: batched discard support, Ric Wheeler, (Fri Jul 9, 3:18 am)
Re: Ext3: batched discard support, Jan Kara, (Mon Jul 12, 8:09 am)
Re: [PATCH 2/2] Add batched discard support for ext3, Lukas Czerner, (Mon Jul 12, 8:58 am)
Re: [PATCH 2/2] Add batched discard support for ext3, Jan Kara, (Mon Jul 12, 12:57 pm)
Re: [PATCH 2/2] Add batched discard support for ext3, Lukas Czerner, (Tue Jul 13, 8:55 am)