mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
block: Add comment to submit_bio_wait()
submit_bio_wait() does not consume bio reference. Add comment about that. Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
b7a71e66d4
commit
3d289d6882
1 changed files with 4 additions and 0 deletions
|
|
@ -936,6 +936,10 @@ static void submit_bio_wait_endio(struct bio *bio)
|
|||
*
|
||||
* Simple wrapper around submit_bio(). Returns 0 on success, or the error from
|
||||
* bio_endio() on failure.
|
||||
*
|
||||
* WARNING: Unlike to how submit_bio() is usually used, this function does not
|
||||
* result in bio reference to be consumed. The caller must drop the reference
|
||||
* on his own.
|
||||
*/
|
||||
int submit_bio_wait(struct bio *bio)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue