From: pschwan Date: Wed, 20 Mar 2002 19:58:43 +0000 (+0000) Subject: - don't free the request when you drop the packet--it's on the stack X-Git-Tag: 0.4.2~516 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=b38f1f4a94153628bf73489619a16ac4e39974a7;p=fs%2Flustre-release.git - don't free the request when you drop the packet--it's on the stack - brought mdcreq.sh into the year 2002 (even though the mdc ioctl interface is still broken) --- diff --git a/lustre/include/linux/obd_support.h b/lustre/include/linux/obd_support.h index d271fb6..9386395 100644 --- a/lustre/include/linux/obd_support.h +++ b/lustre/include/linux/obd_support.h @@ -57,7 +57,6 @@ do { \ break; \ \ CDEBUG(D_OTHER, "obd_drop_packet=%d, dropping packet.\n", id); \ - ptlrpc_free_req(req); \ RETURN(0); \ } while(0) diff --git a/lustre/mdc/mdc_request.c b/lustre/mdc/mdc_request.c index 67ef83f..4d5bfdf 100644 --- a/lustre/mdc/mdc_request.c +++ b/lustre/mdc/mdc_request.c @@ -236,7 +236,7 @@ static int request_ioctl(struct inode *inode, struct file *file, /* XXX complete this to get debugging working again */ err = -1; if (err) { - CERROR("cannot create client"); + CERROR("cannot create client\n"); return -EINVAL; } diff --git a/lustre/tests/mdcreq.sh b/lustre/tests/mdcreq.sh index 47f2902..b9b5f05 100644 --- a/lustre/tests/mdcreq.sh +++ b/lustre/tests/mdcreq.sh @@ -3,40 +3,27 @@ SRCDIR="`dirname $0`" . $SRCDIR/common.sh -mknod /dev/portals c 10 240 +setup -insmod $R/usr/src/portals/linux/oslib/portals.o -insmod $R/usr/src/portals/linux/socknal/ksocknal.o - -$R/usr/src/portals/linux/utils/acceptor 1234 & - -$R/usr/src/portals/linux/utils/ptlctl < /proc/sys/portals/debug $R/usr/src/obd/utils/obdctl <