block: Add comment to submit_bio_wait()
[sfrench/cifs-2.6.git] / block / bio.c
index 9a63597aaaccd226dc03b9ab3595c693d5a918d7..e241bbc49f146efe0a1023c93f940e0851f257ed 100644 (file)
@@ -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)
 {