nvme-fc: convert assoc_active flag to bit op
authorJames Smart <jsmart2021@gmail.com>
Tue, 31 Mar 2020 16:49:51 +0000 (09:49 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 9 May 2020 22:18:33 +0000 (16:18 -0600)
commiteb4ee8f125157926cf36a3c275b04825f1bf8cfa
tree6ba4856e7d145faeab074710f5670bd8fc5a6900
parentf56bf76f79f3dc15f17433dda1b567d34f18e699
nvme-fc: convert assoc_active flag to bit op

Convert the assoc_active boolean flag to a bitop on the flags field.
The bit ops will provide atomicity.

To make this change, the flags field was converted to a long type,
which also affects the FCCTRL_TERMIO flag.  Both FCCTRL_TERMIO and
now ASSOC_ACTIVE flags are set/cleared by bit operations.

Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/fc.c