Skip to content

misc_request_fn panic! #2

Open
Open
@dinghuaming

Description

@dinghuaming

hi, when I add some code in misc_request_fn, the system is panic. why?
my os kernel is 3.10.0-1160.71.1.el7.x86_64.

void misc_request_fn(struct request_queue *q, struct bio *bio) {
bio_get(bio);
printk ("we are passing bios.\n");
// here is where we trace requests...
original_request_fn (q, bio);

bio_put(bio);
return;

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions