[Devel] [PATCH 1/2] fs/fuse kio_pcs: handle error of submit_size_grow()

2018-06-07 Thread Pavel Butsykin
Before continuing write requests, we need to check the procedure size grow was successful. If the size attribute of a file failed to increase, it makes no sense to continue to push write requests because they will not be able to succeed until the file size will match. Signed-off-by: Pavel

[Devel] [PATCH 0/2] fuse_kdirect: fsync hungs after unlink fixes

2018-06-07 Thread Pavel Butsykin
#VSTOR-10635 Pavel Butsykin (2): fs/fuse kio_pcs: handle error of submit_size_grow() fs/fuse kio_pcs: pass the file handle for FUSE_SETATTR request fs/fuse/file.c | 5 +++-- fs/fuse/fuse_i.h | 4 fs/fuse/kio/pcs/pcs_fuse_kdirect.c | 22

[Devel] [PATCH 2/2] fs/fuse kio_pcs: pass the file handle for FUSE_SETATTR request

2018-06-07 Thread Pavel Butsykin
Add to pass the file handle (if it is) for FUSE_SETATTR request inside submit_size_grow(). Signed-off-by: Pavel Butsykin --- fs/fuse/file.c | 5 +++-- fs/fuse/fuse_i.h | 4 fs/fuse/kio/pcs/pcs_fuse_kdirect.c | 8 3 files changed, 15

Re: [Devel] [PATCH 1/2] fs/fuse kio_pcs: handle error of submit_size_grow()

2018-06-07 Thread Pavel Butsykin
On 07.06.2018 17:40, Pavel Butsykin wrote: Before continuing write requests, we need to check the procedure size grow was successful. If the size attribute of a file failed to increase, it makes no sense to continue to push write requests because they will not be able to succeed until the file

Re: [Devel] [PATCH] fs/fuse kio_pcs: some cleanup ireq_on_error_()

2018-06-07 Thread Kirill Tkhai
On 06.06.2018 20:22, Pavel Butsykin wrote: > Signed-off-by: Pavel Butsykin Reviewed-by: Kirill Tkhai > --- > fs/fuse/kio/pcs/pcs_cluster.c | 10 +++--- > 1 file changed, 3 insertions(+), 7 deletions(-) > > diff --git a/fs/fuse/kio/pcs/pcs_cluster.c b/fs/fuse/kio/pcs/pcs_cluster.c > index