]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "block: Remove extra discard_alignment from hd_struct."
authorJens Axboe <jaxboe@fusionio.com>
Mon, 30 May 2011 05:42:51 +0000 (07:42 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Mon, 30 May 2011 05:42:51 +0000 (07:42 +0200)
commite74bd1cae0dfcafebb29764b341a97676d3565b7
tree51b1fc266708d34e0878eaf1e6435773067379a0
parentc2b1f8adafdc1b07dfed15f571bf5f008125482d
Revert "block: Remove extra discard_alignment from hd_struct."

It was not a good idea to start dereferencing disk->queue from
the fs sysfs strategy for displaying discard alignment. We ran
into first a NULL pointer deref, and after fixing that we sometimes
see unvalid disk->queue pointer values.

Since discard is the only one of the bunch actually looking into
the queue, just revert the change.

This reverts commit f71f24ec5f7cc597165228116ce62cf66e8b49b8.

Conflicts:
fs/partitions/check.c
fs/partitions/check.c
include/linux/genhd.h