[DRBD-cvs] svn commit by lars - r2415 - trunk/drbd - when
_req_mod(req) returns, req may have been freed...
drbd-cvs at lists.linbit.com
drbd-cvs at lists.linbit.com
Wed Sep 13 15:32:12 CEST 2006
Author: lars
Date: 2006-09-13 15:32:11 +0200 (Wed, 13 Sep 2006)
New Revision: 2415
Modified:
trunk/drbd/drbd_req.h
Log:
when _req_mod(req) returns, req may have been freed...
Modified: trunk/drbd/drbd_req.h
===================================================================
--- trunk/drbd/drbd_req.h 2006-09-13 13:15:51 UTC (rev 2414)
+++ trunk/drbd/drbd_req.h 2006-09-13 13:32:11 UTC (rev 2415)
@@ -299,8 +299,9 @@
/* If you need it irqsave, do it your self! */
static inline void req_mod(drbd_request_t *req, drbd_req_event_t what)
{
- spin_lock_irq(&req->mdev->req_lock);
+ drbd_dev *mdev = req->mdev;
+ spin_lock_irq(&mdev->req_lock);
_req_mod(req,what);
- spin_unlock_irq(&req->mdev->req_lock);
+ spin_unlock_irq(&mdev->req_lock);
}
#endif
More information about the drbd-cvs
mailing list