Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

NFS: Add a stub for GETDEVICELIST

d4b18c3e (pnfs: remove GETDEVICELIST implementation) removed the
GETDEVICELIST operation from the NFS client, but left a "hole" in the
nfs4_procedures array. This caused /proc/self/mountstats to report an
operation named "51" where GETDEVICELIST used to be. This patch adds a
stub to fix mountstats.

Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Fixes: d4b18c3e (pnfs: remove GETDEVICELIST implementation)
Cc: stable@vger.kernel.org # 3.17+
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>

authored by

Anna Schumaker and committed by
Trond Myklebust
7c61f0d3 05f54903

+6
+6
fs/nfs/nfs4xdr.c
··· 7361 7361 .p_name = #proc, \ 7362 7362 } 7363 7363 7364 + #define STUB(proc) \ 7365 + [NFSPROC4_CLNT_##proc] = { \ 7366 + .p_name = #proc, \ 7367 + } 7368 + 7364 7369 struct rpc_procinfo nfs4_procedures[] = { 7365 7370 PROC(READ, enc_read, dec_read), 7366 7371 PROC(WRITE, enc_write, dec_write), ··· 7418 7413 PROC(SECINFO_NO_NAME, enc_secinfo_no_name, dec_secinfo_no_name), 7419 7414 PROC(TEST_STATEID, enc_test_stateid, dec_test_stateid), 7420 7415 PROC(FREE_STATEID, enc_free_stateid, dec_free_stateid), 7416 + STUB(GETDEVICELIST), 7421 7417 PROC(BIND_CONN_TO_SESSION, 7422 7418 enc_bind_conn_to_session, dec_bind_conn_to_session), 7423 7419 PROC(DESTROY_CLIENTID, enc_destroy_clientid, dec_destroy_clientid),