From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Shilovsky Subject: Re: [PATCH v2 05/16] CIFS: Fix wsize usage in writepages Date: Mon, 21 Jul 2014 11:03:59 +0400 Message-ID: References: <1403863073-19526-1-git-send-email-pshilovsky@samba.org> <1403863073-19526-6-git-send-email-pshilovsky@samba.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: linux-cifs To: Shirish Pargaonkar Return-path: In-Reply-To: Sender: linux-cifs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: 2014-07-20 22:13 GMT+04:00 Shirish Pargaonkar : > Pavel, > > That is correct, this patch does not change that functionality. I was > thinking do we > go through the loop again to attempt to acquire handle (only to > perhaps receive EBADF) > or bail out of cifs_writepages() by marking rest of the pages (till > end) with error flags. Understand. Probably we don't need to go through the loop since find_writable_file() has it's own loop inside (it goes to the start of the search if cifs_reopen_file() fails). So, the existing logic seems right. -- Best regards, Pavel Shilovsky.