|
@@ -292,6 +292,7 @@ bl_read_pagelist(struct nfs_read_data *rdata)
|
|
bl_end_io_read, par);
|
|
bl_end_io_read, par);
|
|
if (IS_ERR(bio)) {
|
|
if (IS_ERR(bio)) {
|
|
rdata->pnfs_error = PTR_ERR(bio);
|
|
rdata->pnfs_error = PTR_ERR(bio);
|
|
|
|
+ bio = NULL;
|
|
goto out;
|
|
goto out;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -581,6 +582,7 @@ fill_invalid_ext:
|
|
bl_end_io_write_zero, par);
|
|
bl_end_io_write_zero, par);
|
|
if (IS_ERR(bio)) {
|
|
if (IS_ERR(bio)) {
|
|
wdata->pnfs_error = PTR_ERR(bio);
|
|
wdata->pnfs_error = PTR_ERR(bio);
|
|
|
|
+ bio = NULL;
|
|
goto out;
|
|
goto out;
|
|
}
|
|
}
|
|
/* FIXME: This should be done in bi_end_io */
|
|
/* FIXME: This should be done in bi_end_io */
|
|
@@ -629,6 +631,7 @@ next_page:
|
|
bl_end_io_write, par);
|
|
bl_end_io_write, par);
|
|
if (IS_ERR(bio)) {
|
|
if (IS_ERR(bio)) {
|
|
wdata->pnfs_error = PTR_ERR(bio);
|
|
wdata->pnfs_error = PTR_ERR(bio);
|
|
|
|
+ bio = NULL;
|
|
goto out;
|
|
goto out;
|
|
}
|
|
}
|
|
isect += PAGE_CACHE_SECTORS;
|
|
isect += PAGE_CACHE_SECTORS;
|