]> git.baikalelectronics.ru Git - kernel.git/commit
Make DISCARD_BARRIER and DISCARD_NOBARRIER writes instead of reads
authorDavid Woodhouse <dwmw2@infradead.org>
Sat, 12 Sep 2009 05:35:37 +0000 (07:35 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 14 Sep 2009 06:24:53 +0000 (08:24 +0200)
commit3970a9a21019d12dded2b366bec5858691361825
treea3c05936cc4fbf49474dae072871dbab909c9ae4
parentdf6ebb540b09166bf97c272db501019993673cd1
Make DISCARD_BARRIER and DISCARD_NOBARRIER writes instead of reads

The commands are conceptually writes, and in the case of IDE and SCSI
commands actually are writes.  They were only reads because we thought
that would interact better with the elevators.  Now the elevators know
about discard requests, that advantage no longer exists.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
include/linux/fs.h