From: Andy Adamson Date: Wed, 20 Jun 2012 19:03:34 +0000 (-0400) Subject: NFSv4.1 do not send LAYOUTRETURN on emtpy plh_segs list X-Git-Tag: v3.6-rc1~38^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=293b3b065c5ec5d15c3087ca42a52c991d7d8235;p=pandora-kernel.git NFSv4.1 do not send LAYOUTRETURN on emtpy plh_segs list mark_matching_lsegs_invalid() resets the mds_threshold counters and can dereference the layout hdr on an initial empty plh_segs list. It returns 0 both in the case of an initial empty list and in a non-emtpy list that was cleared by calls to mark_lseg_invalid. Don't send a LAYOUTRETURN if the list was initially empty. Signed-off-by: Andy Adamson Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed