]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit93389c7bb1d8b7e2b77ba6cecb357b6a714c3f9b
tree6ba4856e7d145faeab074710f5670bd8fc5a6900
parent99a3d1aa0ee87d522f25544c24b75fcc6c60e724
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