aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-07-28 02:56:34 -0400
committerJens Axboe <jens.axboe@oracle.com>2009-07-28 02:56:34 -0400
commit394c6cc63c1d6900ad7498a3221a1d48fc00c4fa (patch)
tree56676e59075c4533b751a9c9c3296bed5958c792 /security
parenteb32baec15c38ae6f06cb898a9f791578c5f8c79 (diff)
mg_disk: fix issue with data integrity on error in mg_write()
We cannot acknowledge the sector write before checking its status (which is done on the next loop iteration) and we also need to do the final status register check after writing the last sector. Fix mg_write() to match mg_write_intr() in this regard. While at it: - add mg_read_one() and mg_write_one() helpers - always use MG_SECTOR_SIZE and remove MG_STORAGE_BUFFER_SIZE [bart: thanks to Tejun for porting the patch over recent block changes] Cc: unsik Kim <donari75@gmail.com> Cc: Tejun Heo <tj@kernel.org> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> =================================================================== Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions