On Fri, Aug 06, 2010 at 03:07:25PM -0700, Hugh Dickins wrote:
REQ_SOFTBARRIER is indeed purely a reordering barrier inside the block
elevator.
That does indeed look incorrect to me. Any kind of explicit waits
usually mean the caller provides ordering. Getting rid of
BLKDEV_IFL_BARRIER in the swap code ASAP would indeed be beneficial
given that we are trying to get rid of hard barriers completely soon.
Auditing the existing blkdev_issue_discard callers in filesystems
is high on the todo list for me.
--