aboutsummaryrefslogtreecommitdiff
path: root/drivers/md/dm-core.h
diff options
context:
space:
mode:
authorGravatar Mike Snitzer <snitzer@kernel.org> 2022-06-21 13:37:06 -0400
committerGravatar Mike Snitzer <snitzer@kernel.org> 2022-06-21 13:48:52 -0400
commit78ccef91234ba331c04d71f3ecb1377451d21056 (patch)
treed61a1bcc7c4b2491559b983349c767403d2d8f22 /drivers/md/dm-core.h
parentdm era: commit metadata in postsuspend after worker stops (diff)
downloadlinux-78ccef91234ba331c04d71f3ecb1377451d21056.tar.gz
linux-78ccef91234ba331c04d71f3ecb1377451d21056.tar.bz2
linux-78ccef91234ba331c04d71f3ecb1377451d21056.zip
dm: do not return early from dm_io_complete if BLK_STS_AGAIN without polling
Commit 5291984004edf ("dm: fix bio polling to handle possibile BLK_STS_AGAIN") inadvertently introduced an early return from dm_io_complete() without first queueing the bio to DM if BLK_STS_AGAIN occurs and bio-polling is _not_ being used. Fix this by only returning early from dm_io_complete() if the bio has first been properly queued to DM. Otherwise, the bio will never finish via bio_endio. Fixes: 5291984004edf ("dm: fix bio polling to handle possibile BLK_STS_AGAIN") Cc: stable@vger.kernel.org Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Diffstat (limited to 'drivers/md/dm-core.h')
0 files changed, 0 insertions, 0 deletions