Print this page
7378 exported_lock held during nfs4 compound processing

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/nfs/nfs3_srv.c
          +++ new/usr/src/uts/common/fs/nfs/nfs3_srv.c
↓ open down ↓ 2709 lines elided ↑ open up ↑
2710 2710                                  goto err1;
2711 2711                          }
2712 2712                  }
2713 2713          }
2714 2714  
2715 2715          fbva.va_mask = AT_ALL;
2716 2716          fbvap = VOP_GETATTR(fvp, &fbva, 0, cr, NULL) ? NULL : &fbva;
2717 2717          favap = fbvap;
2718 2718  
2719 2719          fh3 = &args->to.dir;
2720      -        to_exi = checkexport(&fh3->fh3_fsid, FH3TOXFIDP(fh3));
     2720 +        to_exi = checkexport(&fh3->fh3_fsid, FH3TOXFIDP(fh3), NULL);
2721 2721          if (to_exi == NULL) {
2722 2722                  resp->status = NFS3ERR_ACCES;
2723 2723                  goto err1;
2724 2724          }
2725 2725          exi_rele(to_exi);
2726 2726  
2727 2727          if (to_exi != exi) {
2728 2728                  resp->status = NFS3ERR_XDEV;
2729 2729                  goto err1;
2730 2730          }
↓ open down ↓ 189 lines elided ↑ open up ↑
2920 2920  
2921 2921          if (vp == NULL) {
2922 2922                  error = ESTALE;
2923 2923                  goto out;
2924 2924          }
2925 2925  
2926 2926          va.va_mask = AT_ALL;
2927 2927          vap = VOP_GETATTR(vp, &va, 0, cr, NULL) ? NULL : &va;
2928 2928  
2929 2929          fh3 = &args->link.dir;
2930      -        to_exi = checkexport(&fh3->fh3_fsid, FH3TOXFIDP(fh3));
     2930 +        to_exi = checkexport(&fh3->fh3_fsid, FH3TOXFIDP(fh3), NULL);
2931 2931          if (to_exi == NULL) {
2932 2932                  resp->status = NFS3ERR_ACCES;
2933 2933                  goto out1;
2934 2934          }
2935 2935          exi_rele(to_exi);
2936 2936  
2937 2937          if (to_exi != exi) {
2938 2938                  resp->status = NFS3ERR_XDEV;
2939 2939                  goto out1;
2940 2940          }
↓ open down ↓ 1404 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX