|
@@ -389,9 +389,6 @@ filelayout_read_pagelist(struct nfs_read_data *data)
|
|
__func__, hdr->inode->i_ino,
|
|
__func__, hdr->inode->i_ino,
|
|
data->args.pgbase, (size_t)data->args.count, offset);
|
|
data->args.pgbase, (size_t)data->args.count, offset);
|
|
|
|
|
|
- if (test_bit(NFS_DEVICEID_INVALID, &FILELAYOUT_DEVID_NODE(lseg)->flags))
|
|
|
|
- return PNFS_NOT_ATTEMPTED;
|
|
|
|
-
|
|
|
|
/* Retrieve the correct rpc_client for the byte range */
|
|
/* Retrieve the correct rpc_client for the byte range */
|
|
j = nfs4_fl_calc_j_index(lseg, offset);
|
|
j = nfs4_fl_calc_j_index(lseg, offset);
|
|
idx = nfs4_fl_calc_ds_index(lseg, j);
|
|
idx = nfs4_fl_calc_ds_index(lseg, j);
|
|
@@ -432,16 +429,11 @@ filelayout_write_pagelist(struct nfs_write_data *data, int sync)
|
|
struct nfs_fh *fh;
|
|
struct nfs_fh *fh;
|
|
int status;
|
|
int status;
|
|
|
|
|
|
- if (test_bit(NFS_DEVICEID_INVALID, &FILELAYOUT_DEVID_NODE(lseg)->flags))
|
|
|
|
- return PNFS_NOT_ATTEMPTED;
|
|
|
|
-
|
|
|
|
/* Retrieve the correct rpc_client for the byte range */
|
|
/* Retrieve the correct rpc_client for the byte range */
|
|
j = nfs4_fl_calc_j_index(lseg, offset);
|
|
j = nfs4_fl_calc_j_index(lseg, offset);
|
|
idx = nfs4_fl_calc_ds_index(lseg, j);
|
|
idx = nfs4_fl_calc_ds_index(lseg, j);
|
|
ds = nfs4_fl_prepare_ds(lseg, idx);
|
|
ds = nfs4_fl_prepare_ds(lseg, idx);
|
|
if (!ds) {
|
|
if (!ds) {
|
|
- printk(KERN_ERR "NFS: %s: prepare_ds failed, use MDS\n",
|
|
|
|
- __func__);
|
|
|
|
set_bit(lo_fail_bit(IOMODE_RW), &lseg->pls_layout->plh_flags);
|
|
set_bit(lo_fail_bit(IOMODE_RW), &lseg->pls_layout->plh_flags);
|
|
set_bit(lo_fail_bit(IOMODE_READ), &lseg->pls_layout->plh_flags);
|
|
set_bit(lo_fail_bit(IOMODE_READ), &lseg->pls_layout->plh_flags);
|
|
return PNFS_NOT_ATTEMPTED;
|
|
return PNFS_NOT_ATTEMPTED;
|
|
@@ -977,8 +969,6 @@ static int filelayout_initiate_commit(struct nfs_commit_data *data, int how)
|
|
idx = calc_ds_index_from_commit(lseg, data->ds_commit_index);
|
|
idx = calc_ds_index_from_commit(lseg, data->ds_commit_index);
|
|
ds = nfs4_fl_prepare_ds(lseg, idx);
|
|
ds = nfs4_fl_prepare_ds(lseg, idx);
|
|
if (!ds) {
|
|
if (!ds) {
|
|
- printk(KERN_ERR "NFS: %s: prepare_ds failed, use MDS\n",
|
|
|
|
- __func__);
|
|
|
|
set_bit(lo_fail_bit(IOMODE_RW), &lseg->pls_layout->plh_flags);
|
|
set_bit(lo_fail_bit(IOMODE_RW), &lseg->pls_layout->plh_flags);
|
|
set_bit(lo_fail_bit(IOMODE_READ), &lseg->pls_layout->plh_flags);
|
|
set_bit(lo_fail_bit(IOMODE_READ), &lseg->pls_layout->plh_flags);
|
|
prepare_to_resend_writes(data);
|
|
prepare_to_resend_writes(data);
|