diff options
author | Christoph Hellwig <hch@lst.de> | 2010-06-17 09:54:32 +0200 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2010-06-17 10:10:53 +0200 |
commit | fbbf055692aeb25c54c49d9ca84532de836fbba0 (patch) | |
tree | df058ee803db2b5c8362fd2f2e8f60eacbd9138a /drivers/scsi/scsi.c | |
parent | 79600aadcf35dd31ec284928cf45296fea98db61 (diff) |
block: fix DISCARD_BARRIER requests
Filesystems assume that DISCARD_BARRIER are full barriers, so that they
don't have to track in-progress discard operation when submitting new I/O.
But currently we only treat them as elevator barriers, which don't
actually do the nessecary queue drains.
Also remove the unlikely around both the DISCARD and BARRIER requests -
the happen far too often for a static mispredict.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'drivers/scsi/scsi.c')
0 files changed, 0 insertions, 0 deletions