NFSv4.1: Kill nfs4_ds_disconnect()
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 11 Oct 2012 16:26:04 +0000 (12:26 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 15 Oct 2012 14:49:42 +0000 (10:49 -0400)
commit8fcdc31b3d09bc348ff9bf752ae1291828756cfa
treed56ebacf4dd7290a60555756882178f8541603d0
parentddffeb8c4d0331609ef2581d84de4d763607bd37
NFSv4.1: Kill nfs4_ds_disconnect()

There is nothing to prevent another thread from dereferencing ds->ds_clp
during or after the call to nfs4_ds_disconnect(), and Oopsing due to the
resulting NULL pointer.

Instead, we should just rely on filelayout_mark_devid_invalid() to keep
us out of trouble by avoiding that deviceid.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4filelayout.c
fs/nfs/nfs4filelayout.h
fs/nfs/nfs4filelayoutdev.c