Skip to content

Commit 49b6acb

Browse files
amschuma-ntapsashalevin
authored andcommitted
NFS: Add a stub for GETDEVICELIST
[ Upstream commit 7c61f0d ] d4b18c3 (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: d4b18c3 (pnfs: remove GETDEVICELIST implementation) Cc: stable@vger.kernel.org # 3.17+ Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
1 parent 61c8c52 commit 49b6acb

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎fs/nfs/nfs4xdr.c‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7336,6 +7336,11 @@ nfs4_stat_to_errno(int stat)
73367336
.p_name = #proc, \
73377337
}
73387338

7339+
#define STUB(proc) \
7340+
[NFSPROC4_CLNT_##proc] = { \
7341+
.p_name = #proc, \
7342+
}
7343+
73397344
struct rpc_procinfo nfs4_procedures[] = {
73407345
PROC(READ, enc_read, dec_read),
73417346
PROC(WRITE, enc_write, dec_write),
@@ -7388,6 +7393,7 @@ struct rpc_procinfo nfs4_procedures[] = {
73887393
PROC(SECINFO_NO_NAME, enc_secinfo_no_name, dec_secinfo_no_name),
73897394
PROC(TEST_STATEID, enc_test_stateid, dec_test_stateid),
73907395
PROC(FREE_STATEID, enc_free_stateid, dec_free_stateid),
7396+
STUB(GETDEVICELIST),
73917397
PROC(BIND_CONN_TO_SESSION,
73927398
enc_bind_conn_to_session, dec_bind_conn_to_session),
73937399
PROC(DESTROY_CLIENTID, enc_destroy_clientid, dec_destroy_clientid),

0 commit comments

Comments
 (0)