From: Fred Isaman Date: Thu, 6 Jan 2011 11:36:23 +0000 (+0000) Subject: pnfs: change how lsegs are removed from layout list X-Git-Tag: v2.6.38-rc1~407^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4541d16c024ce40a0781e03c185ecdfe34aec46f;p=pandora-kernel.git pnfs: change how lsegs are removed from layout list This is to prepare the way for sensible io draining. Instead of just removing the lseg from the list, we instead clear the VALID flag (preventing new io from grabbing references to the lseg) and remove the reference holding it in the list. Thus the lseg will be removed once any io in progress completes and any references still held are dropped. Signed-off-by: Fred Isaman Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed