RDMA/rtrs-clt: Use bitmask to check sess->flags
authorJack Wang <jinpu.wang@cloud.ionos.com>
Thu, 17 Dec 2020 14:19:12 +0000 (15:19 +0100)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 15 Jan 2021 19:25:09 +0000 (15:25 -0400)
commitaaed465f761700dace9ab39521013cddaae4f5a3
treedd5958d671c3f80093901413c94e264ac2f2b7c9
parentb38041d50add1c881fbc60eb2be93b58fc58ea21
RDMA/rtrs-clt: Use bitmask to check sess->flags

We may want to add new flags, so it's better to use bitmask to check flags.

Fixes: 6a98d71daea1 ("RDMA/rtrs: client: main functionality")
Link: https://lore.kernel.org/r/20201217141915.56989-17-jinpu.wang@cloud.ionos.com
Signed-off-by: Jack Wang <jinpu.wang@cloud.ionos.com>
Signed-off-by: Gioh Kim <gi-oh.kim@cloud.ionos.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/ulp/rtrs/rtrs-clt.c