Re: [Devel] [PATCH] fs/fuse: move FUSE_S_FAIL_IMMEDIATELY check before kio req send

2019-01-23 Thread Pavel Butsykin
23.01.2019 16:55, Kirill Tkhai пишет: > On 23.01.2019 14:49, Pavel Butsykin wrote: >> Fuse file with FUSE_S_FAIL_IMMEDIATELY state should not allow to execute new >> requests. But in case of kio requests it doesn't work because the status >> check >> is located behind kio.op->req_send(). To fix

Re: [Devel] [PATCH v2] fs/fuse kio: invalidate files for kio

2019-01-23 Thread Alexey Kuznetsov
Ack On Mon, Jan 21, 2019 at 7:30 PM Pavel Butsykin wrote: > > Make fuse_invalidate_files() work for kio. This is necessary to maintain > vstorage revoke in FPath mode. To do this, let's add a list of inflight kio > requests to be able to handle this list in fuse_invalidate_files(). The list >

Re: [Devel] [PATCH] fs/fuse: move FUSE_S_FAIL_IMMEDIATELY check before kio req send

2019-01-23 Thread Alexey Kuznetsov
Ack On Wed, Jan 23, 2019 at 2:49 PM Pavel Butsykin wrote: > > Fuse file with FUSE_S_FAIL_IMMEDIATELY state should not allow to execute new > requests. But in case of kio requests it doesn't work because the status check > is located behind kio.op->req_send(). To fix this let's move the status

Re: [Devel] [PATCH] fs/fuse: move FUSE_S_FAIL_IMMEDIATELY check before kio req send

2019-01-23 Thread Kirill Tkhai
On 23.01.2019 14:49, Pavel Butsykin wrote: > Fuse file with FUSE_S_FAIL_IMMEDIATELY state should not allow to execute new > requests. But in case of kio requests it doesn't work because the status check > is located behind kio.op->req_send(). To fix this let's move the status check > before

[Devel] [PATCH] fs/fuse: move FUSE_S_FAIL_IMMEDIATELY check before kio req send

2019-01-23 Thread Pavel Butsykin
Fuse file with FUSE_S_FAIL_IMMEDIATELY state should not allow to execute new requests. But in case of kio requests it doesn't work because the status check is located behind kio.op->req_send(). To fix this let's move the status check before kio.op->req_send(). Note: We can drop hunk with