Commit d9fb5c091b419e0495c50c1cce9e4cf9f7105072

Authored by Jeff Layton
Committed by Steve French
1 parent 5144ebf408

cifs: no need to use rcu_assign_pointer on immutable keys

cifs: no need to use rcu_assign_pointer on immutable keys

Neither keytype in use by CIFS has an "update" method. This means that
the keys are immutable once instantiated. We don't need to use RCU
to set the payload data pointers.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

fs/cifs/cifs_spnego.c
... ... @@ -41,7 +41,7 @@
41 41  
42 42 /* attach the data */
43 43 memcpy(payload, data, datalen);
44   - rcu_assign_pointer(key->payload.data, payload);
  44 + key->payload.data = payload;
45 45 ret = 0;
46 46  
47 47 error:
fs/cifs/dns_resolve.c
... ... @@ -78,7 +78,7 @@
78 78 }
79 79  
80 80 key->type_data.x[0] = datalen;
81   - rcu_assign_pointer(key->payload.data, ip);
  81 + key->payload.data = ip;
82 82  
83 83 return rc;
84 84 }