diff options
| author | Thomas Gleixner <[email protected]> | 2019-05-06 12:04:12 +0200 | 
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2019-05-06 12:04:12 +0200 | 
| commit | fb4e0592654adb31bc6f3a738d6499b816a655d6 (patch) | |
| tree | e6edaf18cf3a7f49e93fb51de5a47f4b9e786f53 /fs/block_dev.c | |
| parent | 471ba0e686cb13752bc1ff3216c54b69a2d250ea (diff) | |
| parent | 16e32c3cde7763ab875b9030b443ecbc8e352d8a (diff) | |
Merge tag 'irqchip-5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms into irq/core
Pull irqchip updates from Marc Zyngier
- The huge (and terrifying) TI INTR/INTA set of drivers
- Rewrite of the stm32mp1-exti driver as a platform driver
- Update the IOMMU MSI mapping API to be RT friendly
- A number of cleanups and other low impact fixes
Diffstat (limited to 'fs/block_dev.c')
| -rw-r--r-- | fs/block_dev.c | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/fs/block_dev.c b/fs/block_dev.c index 78d3257435c0..24615c76c1d0 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c @@ -307,10 +307,10 @@ static void blkdev_bio_end_io(struct bio *bio)  	struct blkdev_dio *dio = bio->bi_private;  	bool should_dirty = dio->should_dirty; -	if (dio->multi_bio && !atomic_dec_and_test(&dio->ref)) { -		if (bio->bi_status && !dio->bio.bi_status) -			dio->bio.bi_status = bio->bi_status; -	} else { +	if (bio->bi_status && !dio->bio.bi_status) +		dio->bio.bi_status = bio->bi_status; + +	if (!dio->multi_bio || atomic_dec_and_test(&dio->ref)) {  		if (!dio->is_sync) {  			struct kiocb *iocb = dio->iocb;  			ssize_t ret; |