Skip to content

Commit fed67db

Browse files
lwz23kawasaki
authored andcommitted
block: rnull: wire up poll queues dummy callback
Implement the new Operations::poll callback for rnull and return a zero-completion PollResult. This keeps rnull's current behavior unchanged while validating that the borrowed poll abstraction wires cleanly into a Rust blk-mq driver. Signed-off-by: Wenzhao Liao <[email protected]>
1 parent f82ffd6 commit fed67db

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

drivers/block/rnull/rnull.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,12 @@ impl Operations for NullBlkDevice {
9797
// point, and so `end_ok` cannot fail.
9898
.expect("Fatal error - expected to be able to end request");
9999
}
100+
101+
fn poll(
102+
_queue_data: &QueueData,
103+
_hctx: &mq::HwCtx,
104+
_iob: Option<&mq::IoCompBatch>,
105+
) -> mq::PollResult {
106+
mq::PollResult::none()
107+
}
100108
}

0 commit comments

Comments
 (0)