filelayoutdev.c (0c49cd295d42d0032af11d55e2140dbec11dc8d0) | filelayoutdev.c (f54bcf2ecee982da47c2baf8bd87fd9ad9984651) |
---|---|
1/* 2 * Device operations for the pnfs nfs4 file layout driver. 3 * 4 * Copyright (c) 2002 5 * The Regents of the University of Michigan 6 * All Rights Reserved 7 * 8 * Dean Hildebrand <dhildebz@umich.edu> --- 694 unchanged lines hidden (view full) --- 703 struct nfs4_file_layout_dsaddr *dsaddr = FILELAYOUT_LSEG(lseg)->dsaddr; 704 struct nfs4_pnfs_ds *ds = dsaddr->ds_list[ds_idx]; 705 struct nfs4_deviceid_node *devid = FILELAYOUT_DEVID_NODE(lseg); 706 struct nfs4_pnfs_ds *ret = ds; 707 708 if (ds == NULL) { 709 printk(KERN_ERR "NFS: %s: No data server for offset index %d\n", 710 __func__, ds_idx); | 1/* 2 * Device operations for the pnfs nfs4 file layout driver. 3 * 4 * Copyright (c) 2002 5 * The Regents of the University of Michigan 6 * All Rights Reserved 7 * 8 * Dean Hildebrand <dhildebz@umich.edu> --- 694 unchanged lines hidden (view full) --- 703 struct nfs4_file_layout_dsaddr *dsaddr = FILELAYOUT_LSEG(lseg)->dsaddr; 704 struct nfs4_pnfs_ds *ds = dsaddr->ds_list[ds_idx]; 705 struct nfs4_deviceid_node *devid = FILELAYOUT_DEVID_NODE(lseg); 706 struct nfs4_pnfs_ds *ret = ds; 707 708 if (ds == NULL) { 709 printk(KERN_ERR "NFS: %s: No data server for offset index %d\n", 710 __func__, ds_idx); |
711 filelayout_mark_devid_invalid(devid); | 711 pnfs_generic_mark_devid_invalid(devid); |
712 goto out; 713 } 714 smp_rmb(); 715 if (ds->ds_clp) 716 goto out_test_devid; 717 718 if (test_and_set_bit(NFS4DS_CONNECTING, &ds->ds_state) == 0) { 719 struct nfs_server *s = NFS_SERVER(lseg->pls_layout->plh_inode); --- 25 unchanged lines hidden --- | 712 goto out; 713 } 714 smp_rmb(); 715 if (ds->ds_clp) 716 goto out_test_devid; 717 718 if (test_and_set_bit(NFS4DS_CONNECTING, &ds->ds_state) == 0) { 719 struct nfs_server *s = NFS_SERVER(lseg->pls_layout->plh_inode); --- 25 unchanged lines hidden --- |