aboutsummaryrefslogtreecommitdiff
path: root/block/genhd.c
diff options
context:
space:
mode:
authorMartin K. Petersen <martin.petersen@oracle.com>2010-01-11 03:21:47 -0500
committerJens Axboe <jens.axboe@oracle.com>2010-01-11 14:29:19 +0100
commitfe0b393f2c0a0d23a9bc9ed7dc51a1ee511098bd (patch)
tree557e3d8583bf9cebb127066f0c5487691c3f786b /block/genhd.c
parentc1152949bbdfddf8fc857a883294461d757d5332 (diff)
block: Correct handling of bottom device misaligment
The top device misalignment flag would not be set if the added bottom device was already misaligned as opposed to causing a stacking failure. Also massage the reporting so that an error is only returned if adding the bottom device caused the misalignment. I.e. don't return an error if the top is already flagged as misaligned. Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'block/genhd.c')
0 files changed, 0 insertions, 0 deletions