mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 17:59:32 +00:00
nvme-rdma: Make queue flags bit numbers and not shifts
bitops accept bit numbers. Reported-by: Vijay Immanuel <vijayi@attalasystems.com> Signed-off-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
3dee63c7d9
commit
dc5bc6a9fe
1 changed files with 4 additions and 4 deletions
|
@ -80,10 +80,10 @@ struct nvme_rdma_request {
|
|||
};
|
||||
|
||||
enum nvme_rdma_queue_flags {
|
||||
NVME_RDMA_Q_CONNECTED = (1 << 0),
|
||||
NVME_RDMA_IB_QUEUE_ALLOCATED = (1 << 1),
|
||||
NVME_RDMA_Q_DELETING = (1 << 2),
|
||||
NVME_RDMA_Q_LIVE = (1 << 3),
|
||||
NVME_RDMA_Q_CONNECTED = 0,
|
||||
NVME_RDMA_IB_QUEUE_ALLOCATED = 1,
|
||||
NVME_RDMA_Q_DELETING = 2,
|
||||
NVME_RDMA_Q_LIVE = 3,
|
||||
};
|
||||
|
||||
struct nvme_rdma_queue {
|
||||
|
|
Loading…
Reference in a new issue