summaryrefslogtreecommitdiffstats
path: root/block/genhd.c
diff options
context:
space:
mode:
authorMartin K. Petersen <martin.petersen@oracle.com>2010-01-11 09:21:47 +0100
committerJens Axboe <jens.axboe@oracle.com>2010-01-11 14:29:19 +0100
commitfe0b393f2c0a0d23a9bc9ed7dc51a1ee511098bd (patch)
tree557e3d8583bf9cebb127066f0c5487691c3f786b /block/genhd.c
parentMerge branch 'for-jens' of git://git.drbd.org/linux-2.6-drbd into for-linus (diff)
downloadlinux-fe0b393f2c0a0d23a9bc9ed7dc51a1ee511098bd.tar.xz
linux-fe0b393f2c0a0d23a9bc9ed7dc51a1ee511098bd.zip
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