diff options
| author | Neil Brown <neilb@cse.unsw.edu.au> | 2003-09-25 07:33:45 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.osdl.org> | 2003-09-25 07:33:45 -0700 |
| commit | e9b22b65d679ea9f63d061a49d114379a2823dac (patch) | |
| tree | 74ac7c5a264e686f14f51a1065319ed123ccf595 /scripts/kernel-doc | |
| parent | 662c8869d754663b86cf9d6c8178e0f7136f534d (diff) | |
[PATCH] Fix up initialisation of md devices
Previously, we called blk_queue_make_request(q,mddev->pers->make_request)
*before* calling mddev->pers->run(), but this left a hole in which the
device could be accessed before it was initialised.
So we moved blk_queue_make_request to *after* ->pers->run(), but now some
of the initialisation done in ->run is over-written by blk_queue_make_request(),
particularly limits like ->max_sectors.
So now, we just open-code the one line of blk_queue_make_request that we
need at this point.
All the rest has been done by a separate called to blk_queue_make_request,
either when the mddev was first allocated, or when a previous incarnation
of the device was stopped.
This fixes "bio too big" error that occured due to max_sectors being too large.
Diffstat (limited to 'scripts/kernel-doc')
0 files changed, 0 insertions, 0 deletions
