search for: dio_bio_end_aio

Displaying 5 results from an estimated 5 matches for "dio_bio_end_aio".

2018 Feb 23
2
v4.16-rc2: virtio-block + ext4 lockdep splats / sleeping from invalid context
...uire+0xab8/0x18c0 [ 162.435982] lock_acquire+0x48/0x68 [ 162.436678] _raw_read_lock+0x3c/0x50 [ 162.449520] jbd2_trans_will_send_data_barrier+0x44/0xc8 [ 162.450681] ext4_sync_file+0x1e0/0x330 [ 162.451535] vfs_fsync_range+0x48/0xc0 [ 162.452323] dio_complete+0x1fc/0x220 [ 162.453094] dio_bio_end_aio+0xf0/0x130 [ 162.453935] bio_endio+0xe8/0xf8 [ 162.454625] blk_update_request+0x80/0x2e8 [ 162.455450] blk_mq_end_request+0x20/0x70 [ 162.456240] virtblk_request_done+0x24/0x30 [ 162.457080] __blk_mq_complete_request+0x100/0x1b0 [ 162.458047] blk_mq_complete_request+0x60/0x98 [ 162.458...
2018 Feb 23
2
v4.16-rc2: virtio-block + ext4 lockdep splats / sleeping from invalid context
...uire+0xab8/0x18c0 [ 162.435982] lock_acquire+0x48/0x68 [ 162.436678] _raw_read_lock+0x3c/0x50 [ 162.449520] jbd2_trans_will_send_data_barrier+0x44/0xc8 [ 162.450681] ext4_sync_file+0x1e0/0x330 [ 162.451535] vfs_fsync_range+0x48/0xc0 [ 162.452323] dio_complete+0x1fc/0x220 [ 162.453094] dio_bio_end_aio+0xf0/0x130 [ 162.453935] bio_endio+0xe8/0xf8 [ 162.454625] blk_update_request+0x80/0x2e8 [ 162.455450] blk_mq_end_request+0x20/0x70 [ 162.456240] virtblk_request_done+0x24/0x30 [ 162.457080] __blk_mq_complete_request+0x100/0x1b0 [ 162.458047] blk_mq_complete_request+0x60/0x98 [ 162.458...
2018 Feb 26
0
v4.16-rc2: virtio-block + ext4 lockdep splats / sleeping from invalid context
...2] lock_acquire+0x48/0x68 > [ 162.436678] _raw_read_lock+0x3c/0x50 > [ 162.449520] jbd2_trans_will_send_data_barrier+0x44/0xc8 > [ 162.450681] ext4_sync_file+0x1e0/0x330 > [ 162.451535] vfs_fsync_range+0x48/0xc0 > [ 162.452323] dio_complete+0x1fc/0x220 > [ 162.453094] dio_bio_end_aio+0xf0/0x130 > [ 162.453935] bio_endio+0xe8/0xf8 > [ 162.454625] blk_update_request+0x80/0x2e8 > [ 162.455450] blk_mq_end_request+0x20/0x70 > [ 162.456240] virtblk_request_done+0x24/0x30 > [ 162.457080] __blk_mq_complete_request+0x100/0x1b0 > [ 162.458047] blk_mq_complet...
2010 May 12
0
[PATCH 2/4] direct-io: add a hook for the fs to provide its own submit_bio function V3
..._t bio_lock; /* protects BIO fields below */ @@ -300,6 +303,17 @@ static void dio_bio_end_io(struct bio *bio, int error) spin_unlock_irqrestore(&dio->bio_lock, flags); } +void dio_end_io(struct bio *bio, int error) +{ + struct dio *dio = bio->bi_private; + + if (dio->is_async) + dio_bio_end_aio(bio, error); + else + dio_bio_end_io(bio, error); +} +EXPORT_SYMBOL_GPL(dio_end_io); + static int dio_bio_alloc(struct dio *dio, struct block_device *bdev, sector_t first_sector, int nr_vecs) @@ -316,6 +330,7 @@ dio_bio_alloc(struct dio *dio, struct block_device *bdev, bio->bi_end_io =...
2010 May 07
6
[PATCH 1/5] fs: allow short direct-io reads to be completed via buffered IO V2
V1->V2: Check to see if our current ppos is >= i_size after a short DIO read, just in case it was actually a short read and we need to just return. This is similar to what already happens in the write case. If we have a short read while doing O_DIRECT, instead of just returning, fallthrough and try to read the rest via buffered IO. BTRFS needs this because if we encounter a compressed or