callback_proc.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603
  1. /*
  2. * linux/fs/nfs/callback_proc.c
  3. *
  4. * Copyright (C) 2004 Trond Myklebust
  5. *
  6. * NFSv4 callback procedures
  7. */
  8. #include <linux/nfs4.h>
  9. #include <linux/nfs_fs.h>
  10. #include <linux/slab.h>
  11. #include <linux/rcupdate.h>
  12. #include "nfs4_fs.h"
  13. #include "callback.h"
  14. #include "delegation.h"
  15. #include "internal.h"
  16. #include "pnfs.h"
  17. #include "nfs4session.h"
  18. #include "nfs4trace.h"
  19. #define NFSDBG_FACILITY NFSDBG_CALLBACK
  20. __be32 nfs4_callback_getattr(struct cb_getattrargs *args,
  21. struct cb_getattrres *res,
  22. struct cb_process_state *cps)
  23. {
  24. struct nfs_delegation *delegation;
  25. struct nfs_inode *nfsi;
  26. struct inode *inode;
  27. res->status = htonl(NFS4ERR_OP_NOT_IN_SESSION);
  28. if (!cps->clp) /* Always set for v4.0. Set in cb_sequence for v4.1 */
  29. goto out;
  30. res->bitmap[0] = res->bitmap[1] = 0;
  31. res->status = htonl(NFS4ERR_BADHANDLE);
  32. dprintk_rcu("NFS: GETATTR callback request from %s\n",
  33. rpc_peeraddr2str(cps->clp->cl_rpcclient, RPC_DISPLAY_ADDR));
  34. inode = nfs_delegation_find_inode(cps->clp, &args->fh);
  35. if (inode == NULL) {
  36. trace_nfs4_cb_getattr(cps->clp, &args->fh, NULL,
  37. -ntohl(res->status));
  38. goto out;
  39. }
  40. nfsi = NFS_I(inode);
  41. rcu_read_lock();
  42. delegation = rcu_dereference(nfsi->delegation);
  43. if (delegation == NULL || (delegation->type & FMODE_WRITE) == 0)
  44. goto out_iput;
  45. res->size = i_size_read(inode);
  46. res->change_attr = delegation->change_attr;
  47. if (nfsi->nrequests != 0)
  48. res->change_attr++;
  49. res->ctime = inode->i_ctime;
  50. res->mtime = inode->i_mtime;
  51. res->bitmap[0] = (FATTR4_WORD0_CHANGE|FATTR4_WORD0_SIZE) &
  52. args->bitmap[0];
  53. res->bitmap[1] = (FATTR4_WORD1_TIME_METADATA|FATTR4_WORD1_TIME_MODIFY) &
  54. args->bitmap[1];
  55. res->status = 0;
  56. out_iput:
  57. rcu_read_unlock();
  58. trace_nfs4_cb_getattr(cps->clp, &args->fh, inode, -ntohl(res->status));
  59. iput(inode);
  60. out:
  61. dprintk("%s: exit with status = %d\n", __func__, ntohl(res->status));
  62. return res->status;
  63. }
  64. __be32 nfs4_callback_recall(struct cb_recallargs *args, void *dummy,
  65. struct cb_process_state *cps)
  66. {
  67. struct inode *inode;
  68. __be32 res;
  69. res = htonl(NFS4ERR_OP_NOT_IN_SESSION);
  70. if (!cps->clp) /* Always set for v4.0. Set in cb_sequence for v4.1 */
  71. goto out;
  72. dprintk_rcu("NFS: RECALL callback request from %s\n",
  73. rpc_peeraddr2str(cps->clp->cl_rpcclient, RPC_DISPLAY_ADDR));
  74. res = htonl(NFS4ERR_BADHANDLE);
  75. inode = nfs_delegation_find_inode(cps->clp, &args->fh);
  76. if (inode == NULL) {
  77. trace_nfs4_cb_recall(cps->clp, &args->fh, NULL,
  78. &args->stateid, -ntohl(res));
  79. goto out;
  80. }
  81. /* Set up a helper thread to actually return the delegation */
  82. switch (nfs_async_inode_return_delegation(inode, &args->stateid)) {
  83. case 0:
  84. res = 0;
  85. break;
  86. case -ENOENT:
  87. res = htonl(NFS4ERR_BAD_STATEID);
  88. break;
  89. default:
  90. res = htonl(NFS4ERR_RESOURCE);
  91. }
  92. trace_nfs4_cb_recall(cps->clp, &args->fh, inode,
  93. &args->stateid, -ntohl(res));
  94. iput(inode);
  95. out:
  96. dprintk("%s: exit with status = %d\n", __func__, ntohl(res));
  97. return res;
  98. }
  99. #if defined(CONFIG_NFS_V4_1)
  100. /*
  101. * Lookup a layout by filehandle.
  102. *
  103. * Note: gets a refcount on the layout hdr and on its respective inode.
  104. * Caller must put the layout hdr and the inode.
  105. *
  106. * TODO: keep track of all layouts (and delegations) in a hash table
  107. * hashed by filehandle.
  108. */
  109. static struct pnfs_layout_hdr * get_layout_by_fh_locked(struct nfs_client *clp,
  110. struct nfs_fh *fh, nfs4_stateid *stateid)
  111. {
  112. struct nfs_server *server;
  113. struct inode *ino;
  114. struct pnfs_layout_hdr *lo;
  115. list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link) {
  116. list_for_each_entry(lo, &server->layouts, plh_layouts) {
  117. if (!nfs4_stateid_match_other(&lo->plh_stateid, stateid))
  118. continue;
  119. if (nfs_compare_fh(fh, &NFS_I(lo->plh_inode)->fh))
  120. continue;
  121. ino = igrab(lo->plh_inode);
  122. if (!ino)
  123. break;
  124. spin_lock(&ino->i_lock);
  125. /* Is this layout in the process of being freed? */
  126. if (NFS_I(ino)->layout != lo) {
  127. spin_unlock(&ino->i_lock);
  128. iput(ino);
  129. break;
  130. }
  131. pnfs_get_layout_hdr(lo);
  132. spin_unlock(&ino->i_lock);
  133. return lo;
  134. }
  135. }
  136. return NULL;
  137. }
  138. static struct pnfs_layout_hdr * get_layout_by_fh(struct nfs_client *clp,
  139. struct nfs_fh *fh, nfs4_stateid *stateid)
  140. {
  141. struct pnfs_layout_hdr *lo;
  142. spin_lock(&clp->cl_lock);
  143. rcu_read_lock();
  144. lo = get_layout_by_fh_locked(clp, fh, stateid);
  145. rcu_read_unlock();
  146. spin_unlock(&clp->cl_lock);
  147. return lo;
  148. }
  149. /*
  150. * Enforce RFC5661 section 12.5.5.2.1. (Layout Recall and Return Sequencing)
  151. */
  152. static bool pnfs_check_stateid_sequence(struct pnfs_layout_hdr *lo,
  153. const nfs4_stateid *new)
  154. {
  155. u32 oldseq, newseq;
  156. oldseq = be32_to_cpu(lo->plh_stateid.seqid);
  157. newseq = be32_to_cpu(new->seqid);
  158. if (newseq > oldseq + 1)
  159. return false;
  160. return true;
  161. }
  162. static u32 initiate_file_draining(struct nfs_client *clp,
  163. struct cb_layoutrecallargs *args)
  164. {
  165. struct inode *ino;
  166. struct pnfs_layout_hdr *lo;
  167. u32 rv = NFS4ERR_NOMATCHING_LAYOUT;
  168. LIST_HEAD(free_me_list);
  169. lo = get_layout_by_fh(clp, &args->cbl_fh, &args->cbl_stateid);
  170. if (!lo) {
  171. trace_nfs4_cb_layoutrecall_file(clp, &args->cbl_fh, NULL,
  172. &args->cbl_stateid, -rv);
  173. goto out;
  174. }
  175. ino = lo->plh_inode;
  176. spin_lock(&ino->i_lock);
  177. if (!pnfs_check_stateid_sequence(lo, &args->cbl_stateid)) {
  178. rv = NFS4ERR_DELAY;
  179. goto unlock;
  180. }
  181. pnfs_set_layout_stateid(lo, &args->cbl_stateid, true);
  182. spin_unlock(&ino->i_lock);
  183. pnfs_layoutcommit_inode(ino, false);
  184. spin_lock(&ino->i_lock);
  185. /*
  186. * Enforce RFC5661 Section 12.5.5.2.1.5 (Bulk Recall and Return)
  187. */
  188. if (test_bit(NFS_LAYOUT_BULK_RECALL, &lo->plh_flags)) {
  189. rv = NFS4ERR_DELAY;
  190. goto unlock;
  191. }
  192. if (pnfs_mark_matching_lsegs_return(lo, &free_me_list,
  193. &args->cbl_range)) {
  194. rv = NFS4_OK;
  195. goto unlock;
  196. }
  197. if (NFS_SERVER(ino)->pnfs_curr_ld->return_range) {
  198. NFS_SERVER(ino)->pnfs_curr_ld->return_range(lo,
  199. &args->cbl_range);
  200. }
  201. pnfs_mark_layout_returned_if_empty(lo);
  202. unlock:
  203. spin_unlock(&ino->i_lock);
  204. pnfs_free_lseg_list(&free_me_list);
  205. /* Free all lsegs that are attached to commit buckets */
  206. nfs_commit_inode(ino, 0);
  207. pnfs_put_layout_hdr(lo);
  208. trace_nfs4_cb_layoutrecall_file(clp, &args->cbl_fh, ino,
  209. &args->cbl_stateid, -rv);
  210. iput(ino);
  211. out:
  212. return rv;
  213. }
  214. static u32 initiate_bulk_draining(struct nfs_client *clp,
  215. struct cb_layoutrecallargs *args)
  216. {
  217. int stat;
  218. if (args->cbl_recall_type == RETURN_FSID)
  219. stat = pnfs_destroy_layouts_byfsid(clp, &args->cbl_fsid, true);
  220. else
  221. stat = pnfs_destroy_layouts_byclid(clp, true);
  222. if (stat != 0)
  223. return NFS4ERR_DELAY;
  224. return NFS4ERR_NOMATCHING_LAYOUT;
  225. }
  226. static u32 do_callback_layoutrecall(struct nfs_client *clp,
  227. struct cb_layoutrecallargs *args)
  228. {
  229. u32 res;
  230. dprintk("%s enter, type=%i\n", __func__, args->cbl_recall_type);
  231. if (args->cbl_recall_type == RETURN_FILE)
  232. res = initiate_file_draining(clp, args);
  233. else
  234. res = initiate_bulk_draining(clp, args);
  235. dprintk("%s returning %i\n", __func__, res);
  236. return res;
  237. }
  238. __be32 nfs4_callback_layoutrecall(struct cb_layoutrecallargs *args,
  239. void *dummy, struct cb_process_state *cps)
  240. {
  241. u32 res;
  242. dprintk("%s: -->\n", __func__);
  243. if (cps->clp)
  244. res = do_callback_layoutrecall(cps->clp, args);
  245. else
  246. res = NFS4ERR_OP_NOT_IN_SESSION;
  247. dprintk("%s: exit with status = %d\n", __func__, res);
  248. return cpu_to_be32(res);
  249. }
  250. static void pnfs_recall_all_layouts(struct nfs_client *clp)
  251. {
  252. struct cb_layoutrecallargs args;
  253. /* Pretend we got a CB_LAYOUTRECALL(ALL) */
  254. memset(&args, 0, sizeof(args));
  255. args.cbl_recall_type = RETURN_ALL;
  256. /* FIXME we ignore errors, what should we do? */
  257. do_callback_layoutrecall(clp, &args);
  258. }
  259. __be32 nfs4_callback_devicenotify(struct cb_devicenotifyargs *args,
  260. void *dummy, struct cb_process_state *cps)
  261. {
  262. int i;
  263. __be32 res = 0;
  264. struct nfs_client *clp = cps->clp;
  265. struct nfs_server *server = NULL;
  266. dprintk("%s: -->\n", __func__);
  267. if (!clp) {
  268. res = cpu_to_be32(NFS4ERR_OP_NOT_IN_SESSION);
  269. goto out;
  270. }
  271. for (i = 0; i < args->ndevs; i++) {
  272. struct cb_devicenotifyitem *dev = &args->devs[i];
  273. if (!server ||
  274. server->pnfs_curr_ld->id != dev->cbd_layout_type) {
  275. rcu_read_lock();
  276. list_for_each_entry_rcu(server, &clp->cl_superblocks, client_link)
  277. if (server->pnfs_curr_ld &&
  278. server->pnfs_curr_ld->id == dev->cbd_layout_type) {
  279. rcu_read_unlock();
  280. goto found;
  281. }
  282. rcu_read_unlock();
  283. dprintk("%s: layout type %u not found\n",
  284. __func__, dev->cbd_layout_type);
  285. continue;
  286. }
  287. found:
  288. nfs4_delete_deviceid(server->pnfs_curr_ld, clp, &dev->cbd_dev_id);
  289. }
  290. out:
  291. kfree(args->devs);
  292. dprintk("%s: exit with status = %u\n",
  293. __func__, be32_to_cpu(res));
  294. return res;
  295. }
  296. /*
  297. * Validate the sequenceID sent by the server.
  298. * Return success if the sequenceID is one more than what we last saw on
  299. * this slot, accounting for wraparound. Increments the slot's sequence.
  300. *
  301. * We don't yet implement a duplicate request cache, instead we set the
  302. * back channel ca_maxresponsesize_cached to zero. This is OK for now
  303. * since we only currently implement idempotent callbacks anyway.
  304. *
  305. * We have a single slot backchannel at this time, so we don't bother
  306. * checking the used_slots bit array on the table. The lower layer guarantees
  307. * a single outstanding callback request at a time.
  308. */
  309. static __be32
  310. validate_seqid(struct nfs4_slot_table *tbl, struct cb_sequenceargs * args)
  311. {
  312. struct nfs4_slot *slot;
  313. dprintk("%s enter. slotid %u seqid %u\n",
  314. __func__, args->csa_slotid, args->csa_sequenceid);
  315. if (args->csa_slotid >= NFS41_BC_MAX_CALLBACKS)
  316. return htonl(NFS4ERR_BADSLOT);
  317. slot = tbl->slots + args->csa_slotid;
  318. dprintk("%s slot table seqid: %u\n", __func__, slot->seq_nr);
  319. /* Normal */
  320. if (likely(args->csa_sequenceid == slot->seq_nr + 1))
  321. goto out_ok;
  322. /* Replay */
  323. if (args->csa_sequenceid == slot->seq_nr) {
  324. dprintk("%s seqid %u is a replay\n",
  325. __func__, args->csa_sequenceid);
  326. /* Signal process_op to set this error on next op */
  327. if (args->csa_cachethis == 0)
  328. return htonl(NFS4ERR_RETRY_UNCACHED_REP);
  329. /* The ca_maxresponsesize_cached is 0 with no DRC */
  330. else if (args->csa_cachethis == 1)
  331. return htonl(NFS4ERR_REP_TOO_BIG_TO_CACHE);
  332. }
  333. /* Wraparound */
  334. if (args->csa_sequenceid == 1 && (slot->seq_nr + 1) == 0) {
  335. slot->seq_nr = 1;
  336. goto out_ok;
  337. }
  338. /* Misordered request */
  339. return htonl(NFS4ERR_SEQ_MISORDERED);
  340. out_ok:
  341. tbl->highest_used_slotid = args->csa_slotid;
  342. return htonl(NFS4_OK);
  343. }
  344. /*
  345. * For each referring call triple, check the session's slot table for
  346. * a match. If the slot is in use and the sequence numbers match, the
  347. * client is still waiting for a response to the original request.
  348. */
  349. static bool referring_call_exists(struct nfs_client *clp,
  350. uint32_t nrclists,
  351. struct referring_call_list *rclists)
  352. {
  353. bool status = 0;
  354. int i, j;
  355. struct nfs4_session *session;
  356. struct nfs4_slot_table *tbl;
  357. struct referring_call_list *rclist;
  358. struct referring_call *ref;
  359. /*
  360. * XXX When client trunking is implemented, this becomes
  361. * a session lookup from within the loop
  362. */
  363. session = clp->cl_session;
  364. tbl = &session->fc_slot_table;
  365. for (i = 0; i < nrclists; i++) {
  366. rclist = &rclists[i];
  367. if (memcmp(session->sess_id.data,
  368. rclist->rcl_sessionid.data,
  369. NFS4_MAX_SESSIONID_LEN) != 0)
  370. continue;
  371. for (j = 0; j < rclist->rcl_nrefcalls; j++) {
  372. ref = &rclist->rcl_refcalls[j];
  373. dprintk("%s: sessionid %x:%x:%x:%x sequenceid %u "
  374. "slotid %u\n", __func__,
  375. ((u32 *)&rclist->rcl_sessionid.data)[0],
  376. ((u32 *)&rclist->rcl_sessionid.data)[1],
  377. ((u32 *)&rclist->rcl_sessionid.data)[2],
  378. ((u32 *)&rclist->rcl_sessionid.data)[3],
  379. ref->rc_sequenceid, ref->rc_slotid);
  380. spin_lock(&tbl->slot_tbl_lock);
  381. status = (test_bit(ref->rc_slotid, tbl->used_slots) &&
  382. tbl->slots[ref->rc_slotid].seq_nr ==
  383. ref->rc_sequenceid);
  384. spin_unlock(&tbl->slot_tbl_lock);
  385. if (status)
  386. goto out;
  387. }
  388. }
  389. out:
  390. return status;
  391. }
  392. __be32 nfs4_callback_sequence(struct cb_sequenceargs *args,
  393. struct cb_sequenceres *res,
  394. struct cb_process_state *cps)
  395. {
  396. struct nfs4_slot_table *tbl;
  397. struct nfs4_slot *slot;
  398. struct nfs_client *clp;
  399. int i;
  400. __be32 status = htonl(NFS4ERR_BADSESSION);
  401. clp = nfs4_find_client_sessionid(cps->net, args->csa_addr,
  402. &args->csa_sessionid, cps->minorversion);
  403. if (clp == NULL)
  404. goto out;
  405. if (!(clp->cl_session->flags & SESSION4_BACK_CHAN))
  406. goto out;
  407. tbl = &clp->cl_session->bc_slot_table;
  408. slot = tbl->slots + args->csa_slotid;
  409. spin_lock(&tbl->slot_tbl_lock);
  410. /* state manager is resetting the session */
  411. if (test_bit(NFS4_SLOT_TBL_DRAINING, &tbl->slot_tbl_state)) {
  412. status = htonl(NFS4ERR_DELAY);
  413. /* Return NFS4ERR_BADSESSION if we're draining the session
  414. * in order to reset it.
  415. */
  416. if (test_bit(NFS4CLNT_SESSION_RESET, &clp->cl_state))
  417. status = htonl(NFS4ERR_BADSESSION);
  418. goto out_unlock;
  419. }
  420. memcpy(&res->csr_sessionid, &args->csa_sessionid,
  421. sizeof(res->csr_sessionid));
  422. res->csr_sequenceid = args->csa_sequenceid;
  423. res->csr_slotid = args->csa_slotid;
  424. res->csr_highestslotid = NFS41_BC_MAX_CALLBACKS - 1;
  425. res->csr_target_highestslotid = NFS41_BC_MAX_CALLBACKS - 1;
  426. status = validate_seqid(tbl, args);
  427. if (status)
  428. goto out_unlock;
  429. cps->slotid = args->csa_slotid;
  430. /*
  431. * Check for pending referring calls. If a match is found, a
  432. * related callback was received before the response to the original
  433. * call.
  434. */
  435. if (referring_call_exists(clp, args->csa_nrclists, args->csa_rclists)) {
  436. status = htonl(NFS4ERR_DELAY);
  437. goto out_unlock;
  438. }
  439. /*
  440. * RFC5661 20.9.3
  441. * If CB_SEQUENCE returns an error, then the state of the slot
  442. * (sequence ID, cached reply) MUST NOT change.
  443. */
  444. slot->seq_nr++;
  445. out_unlock:
  446. spin_unlock(&tbl->slot_tbl_lock);
  447. out:
  448. cps->clp = clp; /* put in nfs4_callback_compound */
  449. for (i = 0; i < args->csa_nrclists; i++)
  450. kfree(args->csa_rclists[i].rcl_refcalls);
  451. kfree(args->csa_rclists);
  452. if (status == htonl(NFS4ERR_RETRY_UNCACHED_REP)) {
  453. cps->drc_status = status;
  454. status = 0;
  455. } else
  456. res->csr_status = status;
  457. trace_nfs4_cb_sequence(args, res, status);
  458. dprintk("%s: exit with status = %d res->csr_status %d\n", __func__,
  459. ntohl(status), ntohl(res->csr_status));
  460. return status;
  461. }
  462. static bool
  463. validate_bitmap_values(unsigned long mask)
  464. {
  465. return (mask & ~RCA4_TYPE_MASK_ALL) == 0;
  466. }
  467. __be32 nfs4_callback_recallany(struct cb_recallanyargs *args, void *dummy,
  468. struct cb_process_state *cps)
  469. {
  470. __be32 status;
  471. fmode_t flags = 0;
  472. status = cpu_to_be32(NFS4ERR_OP_NOT_IN_SESSION);
  473. if (!cps->clp) /* set in cb_sequence */
  474. goto out;
  475. dprintk_rcu("NFS: RECALL_ANY callback request from %s\n",
  476. rpc_peeraddr2str(cps->clp->cl_rpcclient, RPC_DISPLAY_ADDR));
  477. status = cpu_to_be32(NFS4ERR_INVAL);
  478. if (!validate_bitmap_values(args->craa_type_mask))
  479. goto out;
  480. status = cpu_to_be32(NFS4_OK);
  481. if (test_bit(RCA4_TYPE_MASK_RDATA_DLG, (const unsigned long *)
  482. &args->craa_type_mask))
  483. flags = FMODE_READ;
  484. if (test_bit(RCA4_TYPE_MASK_WDATA_DLG, (const unsigned long *)
  485. &args->craa_type_mask))
  486. flags |= FMODE_WRITE;
  487. if (test_bit(RCA4_TYPE_MASK_FILE_LAYOUT, (const unsigned long *)
  488. &args->craa_type_mask))
  489. pnfs_recall_all_layouts(cps->clp);
  490. if (flags)
  491. nfs_expire_unused_delegation_types(cps->clp, flags);
  492. out:
  493. dprintk("%s: exit with status = %d\n", __func__, ntohl(status));
  494. return status;
  495. }
  496. /* Reduce the fore channel's max_slots to the target value */
  497. __be32 nfs4_callback_recallslot(struct cb_recallslotargs *args, void *dummy,
  498. struct cb_process_state *cps)
  499. {
  500. struct nfs4_slot_table *fc_tbl;
  501. __be32 status;
  502. status = htonl(NFS4ERR_OP_NOT_IN_SESSION);
  503. if (!cps->clp) /* set in cb_sequence */
  504. goto out;
  505. dprintk_rcu("NFS: CB_RECALL_SLOT request from %s target highest slotid %u\n",
  506. rpc_peeraddr2str(cps->clp->cl_rpcclient, RPC_DISPLAY_ADDR),
  507. args->crsa_target_highest_slotid);
  508. fc_tbl = &cps->clp->cl_session->fc_slot_table;
  509. status = htonl(NFS4_OK);
  510. nfs41_set_target_slotid(fc_tbl, args->crsa_target_highest_slotid);
  511. nfs41_notify_server(cps->clp);
  512. out:
  513. dprintk("%s: exit with status = %d\n", __func__, ntohl(status));
  514. return status;
  515. }
  516. #endif /* CONFIG_NFS_V4_1 */