[PATCH 2/5] Make DISCARD_BARRIER and DISCARD_NOBARRIER writes instead of reads

Date

Thu, 2 Apr 2009 10:37:24 -0400

From: David Woodhouse <dwmw2@infradead.org>

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