lock_avail clean up

Fixed mixing enums. No functional change as CACHE_INODE_SUCCESS and
STATE_SUCCESS evaluate to zero! Coverity CID# 30326, 30327

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Reviewed-by: Frank S. Filz <ffilzlnx@mindspring.com>
Fix queue_notify_device calling notify_device!

queue_notify_device() calls notify_device() with first argument as
dev_exportid. It shoud be notify_type! Coverity CID# 30328

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Reviewed-by: Frank S. Filz <ffilzlnx@mindspring.com>
Fix layoutrec_completion() using freed memory.

It frees cb_data and passes it while calling nfs41_complete_single.
nfs41_complete_single() doesn't use it at all though! Covery CID# 30406.

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Reviewed-by: Frank S. Filz <ffilzlnx@mindspring.com>