aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@nokia.com>2010-09-25 12:42:55 +0200
committerJens Axboe <jaxboe@fusionio.com>2010-09-25 12:42:55 +0200
commitf281fb5fe54e15a7ab802945e42f8e24fceb56b2 (patch)
tree51a7dd2e900b8ce4118d1357ab6e187edfc12e25 /drivers
parenta850ea30374ebed32a0724742601861853fde869 (diff)
downloadkernel_samsung_smdk4412-f281fb5fe54e15a7ab802945e42f8e24fceb56b2.zip
kernel_samsung_smdk4412-f281fb5fe54e15a7ab802945e42f8e24fceb56b2.tar.gz
kernel_samsung_smdk4412-f281fb5fe54e15a7ab802945e42f8e24fceb56b2.tar.bz2
block: prevent merges of discard and write requests
Add logic to prevent two I/O requests being merged if only one of them is a discard. Ditto secure discard. Without this fix, it is possible for write requests to transform into discard requests. For example: Submit bio 1 to discard 8 sectors from sector n Submit bio 2 to write 8 sectors from sector n + 16 Submit bio 3 to write 8 sectors from sector n + 8 Bio 1 becomes request 1. Bio 2 becomes request 2. Bio 3 is merged with request 2, and then subsequently request 2 is merged with request 1 resulting in just one I/O request which discards all 24 sectors. Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com> (Moved the checks above the position checks /Jens) Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions