Re: [dm-devel] [PATCH 1/2] dm crypt: use GFP_ATOMIC when allocating crypto requests from softirq

2020-12-30 Thread Ignat Korchagin
Yes, good call! Reposted with allocation failure handling. Thanks, Ignat On Wed, Dec 30, 2020 at 6:11 PM Mikulas Patocka wrote: > > Hi > > This patch doesn't handle allocation failure gracefully. > > Mikulas > > > > On Tue, 29 Dec 2020, Ignat Korchagin wrote: > > > Commit

[dm-devel] [PATCH v2 2/2] dm crypt: do not wait for backlogged crypto request completion in softirq

2020-12-30 Thread Ignat Korchagin
Commit 39d42fa96ba1b7d2544db3f8ed5da8fb0d5cb877 made it possible for some code paths in dm-crypt to be executed in softirq context, when the underlying driver processes IO requests in interrupt/softirq context. When Crypto API backlogs a crypto request, dm-crypt uses wait_for_completion to avoid

[dm-devel] [PATCH v2 0/2] dm crypt: some fixes to support dm-crypt running in softirq context

2020-12-30 Thread Ignat Korchagin
Changes from v1: 0001: Handle memory allocation failure for GFP_ATOMIC Ignat Korchagin (2): dm crypt: use GFP_ATOMIC when allocating crypto requests from softirq dm crypt: do not wait for backlogged crypto request completion in softirq drivers/md/dm-crypt.c | 135

[dm-devel] [PATCH v2 1/2] dm crypt: use GFP_ATOMIC when allocating crypto requests from softirq

2020-12-30 Thread Ignat Korchagin
Commit 39d42fa96ba1b7d2544db3f8ed5da8fb0d5cb877 made it possible for some code paths in dm-crypt to be executed in softirq context, when the underlying driver processes IO requests in interrupt/softirq context. In this case sometimes when allocating a new crypto request we may get a stacktrace

Re: [dm-devel] [PATCH 0/4] Fix order when split bio and send remaining back to itself

2020-12-30 Thread Mike Snitzer
On Tue, Dec 29 2020 at 4:18am -0500, dannyshih wrote: > From: Danny Shih > > We found out that split bios might handle not in order when a big bio > had split by blk_queue_split() and also split in stacking block device, > such as md device because chunk size boundary limit. > > Stacking

Re: [dm-devel] [PATCH 1/2] dm crypt: use GFP_ATOMIC when allocating crypto requests from softirq

2020-12-30 Thread Mikulas Patocka
Hi This patch doesn't handle allocation failure gracefully. Mikulas On Tue, 29 Dec 2020, Ignat Korchagin wrote: > Commit 39d42fa96ba1b7d2544db3f8ed5da8fb0d5cb877 made it possible for some code > paths in dm-crypt to be executed in softirq context, when the underlying > driver > processes IO

Re: [dm-devel] [PATCH 1/4] block: introduce submit_bio_noacct_add_head

2020-12-30 Thread antlists
On 30/12/2020 17:06, John Stoffel wrote: Danny> "Provide a way for stacking block device to re-submit Danny> the bio which should be handled first." Danny> I will fix it. Great, though my second question is*why* it needs to be handled first? What is the difference between stacked and

Re: [dm-devel] [PATCH 1/4] block: introduce submit_bio_noacct_add_head

2020-12-30 Thread John Stoffel
> "Danny" == Danny Shih writes: Danny> Hi, John, Danny> Thank you for taking the time to write a review. Danny> John Stoffel writes: >>> "dannyshih" == dannyshih writes: dannyshih> From: Danny Shih dannyshih> Porvide a way for stacking block device to re-submit the bio dannyshih>

Re: [dm-devel] [PATCH 1/4] block: introduce submit_bio_noacct_add_head

2020-12-30 Thread John Stoffel
> "antlists" == antlists writes: antlists> On 30/12/2020 00:00, John Stoffel wrote: dannyshih> From: Danny Shih dannyshih> Porvide a way for stacking block device to re-submit the bio dannyshih> which sholud be handled firstly. >> >> You're spelling needs to be fixed in these messages.

Re: [dm-devel] [PATCH 1/2] dm crypt: use GFP_ATOMIC when allocating crypto requests from softirq

2020-12-30 Thread Ignat Korchagin
On Wed, Dec 30, 2020 at 7:36 AM Hillf Danton wrote: > > On Tue, 29 Dec 2020 22:57:13 + > > > > Fixes: 39d42fa96ba1 ("dm crypt: add flags to optionally bypass kcryptd > > workqueues") > > Looks like a seperate fix to this commit is needed if what can be found > at (Subject: [patch 00/12] UBS:

Re: [dm-devel] [PATCH 1/4] block: introduce submit_bio_noacct_add_head

2020-12-30 Thread Danny Shih
Hi, John, Thank you for taking the time to write a review. John Stoffel writes: "dannyshih" == dannyshih writes: dannyshih> From: Danny Shih dannyshih> Porvide a way for stacking block device to re-submit the bio dannyshih> which sholud be handled firstly. You're spelling needs to be

[dm-devel] [PATCH AUTOSEL 4.19 10/10] dm verity: skip verity work if I/O error when system is shutting down

2020-12-30 Thread Sasha Levin
From: Hyeongseok Kim [ Upstream commit 252bd1256396cebc6fc3526127fdb0b317601318 ] If emergency system shutdown is called, like by thermal shutdown, a dm device could be alive when the block device couldn't process I/O requests anymore. In this state, the handling of I/O errors by new dm I/O

[dm-devel] [PATCH AUTOSEL 5.10 29/31] dm verity: skip verity work if I/O error when system is shutting down

2020-12-30 Thread Sasha Levin
From: Hyeongseok Kim [ Upstream commit 252bd1256396cebc6fc3526127fdb0b317601318 ] If emergency system shutdown is called, like by thermal shutdown, a dm device could be alive when the block device couldn't process I/O requests anymore. In this state, the handling of I/O errors by new dm I/O

[dm-devel] [PATCH AUTOSEL 4.14 8/8] dm verity: skip verity work if I/O error when system is shutting down

2020-12-30 Thread Sasha Levin
From: Hyeongseok Kim [ Upstream commit 252bd1256396cebc6fc3526127fdb0b317601318 ] If emergency system shutdown is called, like by thermal shutdown, a dm device could be alive when the block device couldn't process I/O requests anymore. In this state, the handling of I/O errors by new dm I/O

[dm-devel] [PATCH AUTOSEL 5.4 17/17] dm verity: skip verity work if I/O error when system is shutting down

2020-12-30 Thread Sasha Levin
From: Hyeongseok Kim [ Upstream commit 252bd1256396cebc6fc3526127fdb0b317601318 ] If emergency system shutdown is called, like by thermal shutdown, a dm device could be alive when the block device couldn't process I/O requests anymore. In this state, the handling of I/O errors by new dm I/O

Re: [dm-devel] [PATCH 1/4] block: introduce submit_bio_noacct_add_head

2020-12-30 Thread antlists
On 30/12/2020 00:00, John Stoffel wrote: dannyshih> From: Danny Shih dannyshih> Porvide a way for stacking block device to re-submit the bio dannyshih> which sholud be handled firstly. You're spelling needs to be fixed in these messages. ^^ It is traditional, when correcting someone