From patchwork Wed Mar 16 20:20:24 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve French X-Patchwork-Id: 639781 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p2GKJkjg030033 for ; Wed, 16 Mar 2011 20:20:26 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753798Ab1CPUU0 (ORCPT ); Wed, 16 Mar 2011 16:20:26 -0400 Received: from mail-fx0-f46.google.com ([209.85.161.46]:37833 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753569Ab1CPUU0 (ORCPT ); Wed, 16 Mar 2011 16:20:26 -0400 Received: by fxm17 with SMTP id 17so2065376fxm.19 for ; Wed, 16 Mar 2011 13:20:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=ul51yji/nuOPvrW3Pje2vcKAcvX2MDuz2FwxBKh9rAI=; b=iqA6i+BE93zepIqy42IM8zoKRJsreTxkEwbu/c6RJ0e08PH63rw7CXYBCtNurJc8AJ XCfkTsm6VViKcWUJPVnhlGCfoJ0WyPru9DlY5T79kkKm/ABcE1kqS6MgHNTimtaOa4bV TgVU2R7kcD8AJgxDC81aq8symFRywlNwbssZ0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=WtFiDa3H4Eo07BpYGVjrXLwzDguauuAVkHuZLqItjdqLGBPYERbqMB/6QSK2kjlTXo cJOuYCzht3C1LNf6dXzO3pxRwsIG9581fKllFHyFveVoZJGycb9aK670CeGJ1kl1fRJd vcpUVw61JJP15szFhYqH4XAGPWrX8G1cyxGok= MIME-Version: 1.0 Received: by 10.223.149.70 with SMTP id s6mr489497fav.66.1300306824368; Wed, 16 Mar 2011 13:20:24 -0700 (PDT) Received: by 10.223.118.15 with HTTP; Wed, 16 Mar 2011 13:20:24 -0700 (PDT) Date: Wed, 16 Mar 2011 15:20:24 -0500 Message-ID: Subject: [CIFS] Initialize number of credits to one From: Steve French To: linux-cifs@vger.kernel.org Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 16 Mar 2011 20:20:26 +0000 (UTC) diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 33e11a8..c19f00a 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -3202,6 +3202,7 @@ int cifs_negotiate_protocol(unsigned int xid, struct cifs_ses *ses) #ifdef CONFIG_CIFS_SMB2 if (ses->server->is_smb2) { + atomic_set(&server->credits, 1); /* we have one credit to start with */ rc = SMB2_negotiate(xid, ses); /* BB we probably don't need to retry with modern servers */