Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1388653
| From | Ming Lei <ming.lei@canonical.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 2/3] fs: direct-io: call .bi_end_io via bio_endio() |
| Date | 2016-04-27 06:00 +0200 |
| Message-ID | <rsoNQ-2IC-15@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
bio_endio() is the graceful way to complete one bio.
Signed-off-by: Ming Lei <ming.lei@canonical.com>
---
fs/direct-io.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/fs/direct-io.c b/fs/direct-io.c
index a8dd60a..0a35e51 100644
--- a/fs/direct-io.c
+++ b/fs/direct-io.c
@@ -350,15 +350,10 @@ static void dio_bio_end_io(struct bio *bio)
*/
void dio_end_io(struct bio *bio, int error)
{
- struct dio *dio = bio->bi_private;
-
if (!bio->bi_error)
bio->bi_error = error;
- if (dio->is_async)
- dio_bio_end_aio(bio);
- else
- dio_bio_end_io(bio);
+ bio_endio(bio);
}
EXPORT_SYMBOL_GPL(dio_end_io);
--
1.9.1
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH v2 2/3] fs: direct-io: call .bi_end_io via bio_endio() Ming Lei <ming.lei@canonical.com> - 2016-04-27 06:00 +0200
csiph-web