Author: sephe
Date: Tue Jul 12 03:14:35 2016
New Revision: 302608
URL: https://svnweb.freebsd.org/changeset/base/302608

Log:
  hyperv/vmbus: Remove unnecessary check and unapplied comment
  
  MFC after:    1 week
  Sponsored by: Microsoft OSTC
  Differential Revision:        https://reviews.freebsd.org/D6877

Modified:
  head/sys/dev/hyperv/vmbus/hv_channel.c

Modified: head/sys/dev/hyperv/vmbus/hv_channel.c
==============================================================================
--- head/sys/dev/hyperv/vmbus/hv_channel.c      Tue Jul 12 03:09:10 2016        
(r302607)
+++ head/sys/dev/hyperv/vmbus/hv_channel.c      Tue Jul 12 03:14:35 2016        
(r302608)
@@ -975,23 +975,6 @@ VmbusProcessChannelEvent(void* context, 
        hv_vmbus_channel* channel = (hv_vmbus_channel*)context;
        boolean_t is_batched_reading;
 
-       /**
-        * Find the channel based on this relid and invokes
-        * the channel callback to process the event
-        */
-
-       if (channel == NULL) {
-               return;
-       }
-       /**
-        * To deal with the race condition where we might
-        * receive a packet while the relevant driver is
-        * being unloaded, dispatch the callback while
-        * holding the channel lock. The unloading driver
-        * will acquire the same channel lock to set the
-        * callback to NULL. This closes the window.
-        */
-
        if (channel->on_channel_callback != NULL) {
                arg = channel->channel_callback_context;
                is_batched_reading = channel->batched_reading;
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to