Commit aff88a42 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Yang Yingliang
Browse files

nvme-pci: use atomic bitops to mark a queue enabled



mainline inclusion
from mainline-5.0-rc1
commit 4e224106
category: bugfix
bugzilla: 167363
CVE: NA

---------------------------

This gets rid of all the messing with cq_vector and the ->polled field
by using an atomic bitop to mark the queue enabled or not.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarKeith Busch <keith.busch@intel.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>

Conflicts:
	drivers/nvme/host/pci.c
	[ Non-bugfix patch 4b04cc6a("nvme: add separate poll queue
	  map") is not applied. ]

Signed-off-by: default avatarZhihao Cheng <chengzhihao1@huawei.com>
Reviewed-by: default avatarHou Tao <houtao1@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent c22fd840
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment