]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pnfs: Increase the refcount when LAYOUTGET fails the first time
authorYanchuan Nian <ycnian@gmail.com>
Fri, 4 Jan 2013 12:19:49 +0000 (20:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Jan 2013 17:18:38 +0000 (09:18 -0800)
commit0b7d74eb80d06be3b5792cbdd2c77d1ccb05cc4b
tree14fd97d159f7b948b5e63b7a8d86c34d03a31c21
parent5865afd9e73a8981f38344ddcb42d9f2049c1469
pnfs: Increase the refcount when LAYOUTGET fails the first time

commit 39e88fcfb1d5c6c4b1ff76ca2ab76cf449b850e8 upstream.

The layout will be set unusable if LAYOUTGET fails. Is it reasonable to
increase the refcount iff LAYOUTGET fails the first time?

Signed-off-by: Yanchuan Nian <ycnian@gmail.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/pnfs.c