Re: Should a block device enforce block atomicity?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Erez Zilber <erezzi.list@...>
Cc: Jens Axboe <jens.axboe@...>, <linux-scsi@...>, <linux-kernel@...>
Date: Monday, June 30, 2008 - 4:24 am

Erez Zilber wrote:

Don't forget that all IO requests are queued on the device. With a
modern HW and disk you usually have NCQ and most drives will throw
away write request to the same sector if they see a later write to
the same sector in the queue.

That said. There is nothing wrong with writing again and again to 
the same sector on disk. File/record locking is done at the FileSystem
level. An application that wants exclusive write need to open the file
that way. Other wise it could even be written from another machine not
even another thread.

What is it you are concerned with?

Boaz
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Should a block device enforce block atomicity?, Erez Zilber, (Mon Jun 30, 2:51 am)
Re: Should a block device enforce block atomicity?, Jens Axboe, (Mon Jun 30, 2:55 am)
Re: Should a block device enforce block atomicity?, Erez Zilber, (Mon Jun 30, 3:58 am)
Re: Should a block device enforce block atomicity?, Boaz Harrosh, (Mon Jun 30, 4:24 am)
Re: Should a block device enforce block atomicity?, Zhao Forrest, (Mon Jun 30, 4:47 am)
Re: Should a block device enforce block atomicity?, Jens Axboe, (Mon Jun 30, 4:55 am)