Skip to content

Commit d99ca60

Browse files
Keith Buschaxboe
authored andcommitted
nvme: unexport starting async event work
Async event work is for core use only and should not be called directly from drivers. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Keith Busch <keith.busch@intel.com> Reviewed-by: Guan Junxiong <guanjunxiong@huawei.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent ad22c35 commit d99ca60

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

drivers/nvme/host/core.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2756,12 +2756,6 @@ void nvme_complete_async_event(struct nvme_ctrl *ctrl, __le16 status,
27562756
}
27572757
EXPORT_SYMBOL_GPL(nvme_complete_async_event);
27582758

2759-
void nvme_queue_async_events(struct nvme_ctrl *ctrl)
2760-
{
2761-
queue_work(nvme_wq, &ctrl->async_event_work);
2762-
}
2763-
EXPORT_SYMBOL_GPL(nvme_queue_async_events);
2764-
27652759
void nvme_stop_ctrl(struct nvme_ctrl *ctrl)
27662760
{
27672761
nvme_stop_keep_alive(ctrl);
@@ -2778,7 +2772,7 @@ void nvme_start_ctrl(struct nvme_ctrl *ctrl)
27782772

27792773
if (ctrl->queue_count > 1) {
27802774
nvme_queue_scan(ctrl);
2781-
nvme_queue_async_events(ctrl);
2775+
queue_work(nvme_wq, &ctrl->async_event_work);
27822776
nvme_start_queues(ctrl);
27832777
}
27842778
}

drivers/nvme/host/nvme.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,6 @@ int nvme_sec_submit(void *data, u16 spsp, u8 secp, void *buffer, size_t len,
314314

315315
void nvme_complete_async_event(struct nvme_ctrl *ctrl, __le16 status,
316316
union nvme_result *res);
317-
void nvme_queue_async_events(struct nvme_ctrl *ctrl);
318317

319318
void nvme_stop_queues(struct nvme_ctrl *ctrl);
320319
void nvme_start_queues(struct nvme_ctrl *ctrl);

0 commit comments

Comments
 (0)