bio_associate_current(9)

bio_associate_current9

Associate a bio with current

Usage

int bio_associate_current(struct bio * bio);

Arguments

bio

target bio

Overview

Associate bio with current if it hasn't been associated yet. Block layer will treat bio as if it were issued by current no matter which task actually issues it.

This function takes an extra reference of task's io_context and blkcg which will be put when bio is released. The caller must own bio, ensure current->io_context exists, and is responsible for synchronizing calls to this function.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.