]> err.no Git - linux-2.6/commit
[S390] dcssblk: prevent early access without own make_request function
authorChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 4 Dec 2007 15:09:03 +0000 (16:09 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 4 Dec 2007 15:09:57 +0000 (16:09 +0100)
commit436d1bc7fe6e78e37fe5f5022ea4d5c133d825eb
treed2363a3489a98a3325114a253bef4dc13be3885e
parent671756162cfb0b3ccbb6a0047baa3010885561a2
[S390] dcssblk: prevent early access without own make_request function

When loading a dcss segment with the dcssblk driver, sometimes the
following kind of message appears:

bio too big device dcssblk0 (8 > 0)
Buffer I/O error on device dcssblk0, logical block 172016
..

The fix is to move the disk registration after setting the
make_request function, to avoid calls into generic_make_request
for dcssblock without having the make_request function set up
properly.

Cc: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/block/dcssblk.c