rds: Fix non-atomic operation on shared flag variable
authorHåkon Bugge <Haakon.Bugge@oracle.com>
Tue, 5 Sep 2017 15:42:01 +0000 (17:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Sep 2017 21:49:49 +0000 (14:49 -0700)
commitf530f39f5ff97209cc6f1bf66e634685954ad741
treee2faf19f16a79c63be1d66f0c6c8e9e74e06d03a
parent2c8468dcf8303c68712f11c782d7d8724de07a73
rds: Fix non-atomic operation on shared flag variable

The bits in m_flags in struct rds_message are used for a plurality of
reasons, and from different contexts. To avoid any missing updates to
m_flags, use the atomic set_bit() instead of the non-atomic equivalent.

Signed-off-by: Håkon Bugge <haakon.bugge@oracle.com>
Reviewed-by: Knut Omang <knut.omang@oracle.com>
Reviewed-by: Wei Lin Guay <wei.lin.guay@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/send.c