]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dm: respect REQ_NOWAIT flag in normal bios issued to DM
authorMike Snitzer <snitzer@kernel.org>
Wed, 25 Oct 2023 23:29:03 +0000 (19:29 -0400)
committerMike Snitzer <snitzer@kernel.org>
Fri, 27 Oct 2023 17:22:51 +0000 (13:22 -0400)
commit6f25dd1c57b8ba92d899eae4eda16573a2f78ffc
tree4b9b20253bdc2f3cec43857728f657b0813af255
parent4a2fe2960891f1ccd7805d0973284fd44c2f12b4
dm: respect REQ_NOWAIT flag in normal bios issued to DM

Update DM core's normal IO submission to allocate required memory
using GFP_NOWAIT if REQ_NOWAIT is set.

Tested with simple test provided in commit a9ce385344f916 ("dm: don't
attempt to queue IO under RCU protection") that was enhanced to check
error codes.  Also tested using fio's pvsync2 with nowait=1.

But testing with induced GFP_NOWAIT allocation failures wasn't
performed (yet).

Signed-off-by: Mike Snitzer <snitzer@kernel.org>
drivers/md/dm.c