summaryrefslogtreecommitdiff
path: root/block/genhd.c
diff options
context:
space:
mode:
authorMartin K. Petersen <martin.petersen@oracle.com>2010-01-11 08:21:47 (GMT)
committerJens Axboe <jens.axboe@oracle.com>2010-01-11 13:29:19 (GMT)
commitfe0b393f2c0a0d23a9bc9ed7dc51a1ee511098bd (patch)
tree557e3d8583bf9cebb127066f0c5487691c3f786b /block/genhd.c
parentc1152949bbdfddf8fc857a883294461d757d5332 (diff)
downloadlinux-fe0b393f2c0a0d23a9bc9ed7dc51a1ee511098bd.tar.xz
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