]> bbs.cooldavid.org Git - net-next-2.6.git/commit - drivers/scsi/st.c
[SCSI] st: retry enlarge_buffer allocation
authorKai Makisara <Kai.Makisara@kolumbus.fi>
Thu, 18 Dec 2008 05:49:51 +0000 (14:49 +0900)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 2 Jan 2009 18:06:52 +0000 (12:06 -0600)
commit8f78fc5eb798426891f99390a61f752aaef9fc39
tree4b1f614ed4af572024b3906855ab15f3b7f19ec8
parent02ae2c0e844e2864a877d1da8a92fe5e63778a18
[SCSI] st: retry enlarge_buffer allocation

Make enlarge_buffer() retry allocation if the previously chosen page
order was too small. Really limit the page order to 6. Return error if
the maximum order is not large enough for the request.

Signed-off-by: Kai Makisara <Kai.Makisara@kolumbus.fi>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/st.c