Module refcounting in fs/proc/inode.c

From: Doug Ledford (dledford@redhat.com)
Date: Sun Nov 17 2002 - 19:08:16 EST


This patch should make module ref counting safe in the proc filesystem.
Without it, accessing /proc/scsi/aic7xxx/0 renders the aic7xxx module
unloadable. However, I assume that we can call put_de() on the de we have
at the time that the module ref inc attempt might fail. If that's not
right, then someone who knows de ops will have to correct this patch.

-- 
  Doug Ledford <dledford@redhat.com>     919-754-3700 x44233
         Red Hat, Inc. 
         1801 Varsity Dr.
         Raleigh, NC 27606
  


- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Nov 23 2002 - 22:00:20 EST