From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753123Ab0I1VGa (ORCPT ); Tue, 28 Sep 2010 17:06:30 -0400 Received: from mail.sf-mail.de ([62.27.20.61]:44539 "EHLO mail.sf-mail.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752799Ab0I1VG3 (ORCPT ); Tue, 28 Sep 2010 17:06:29 -0400 From: Rolf Eike Beer To: "Nicholas A. Bellinger" Subject: Re: [PATCH 3/3] tcm/fileio: Add UNMAP / Block DISCARD support Date: Tue, 28 Sep 2010 23:06:22 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.34.7-0.3-desktop; KDE/4.5.1; i686; ; ) Cc: "linux-scsi" , "linux-kernel" , Christoph Hellwig , "Martin K. Petersen" , Douglas Gilbert , Jens Axboe , FUJITA Tomonori , Mike Christie , Hannes Reinecke , James Bottomley , Konrad Rzeszutek Wilk , Boaz Harrosh , Richard Sharpe References: <1285627910-6492-1-git-send-email-nab@linux-iscsi.org> In-Reply-To: <1285627910-6492-1-git-send-email-nab@linux-iscsi.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1384148.rnYdPORNX9"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201009282306.23514.eike-kernel@sf-tec.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nextPart1384148.rnYdPORNX9 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Nicholas A. Bellinger wrote: > @@ -433,6 +448,42 @@ static int fd_emulate_scsi_cdb(struct se_task *task) > if (ret < 0) > return ret; > break; > + case UNMAP: > + i = igrab(f->f_mapping->host); > + if (!(i)) { ..... > + if (!(S_ISBLK(i->i_mode))) { ..... > + if (!(bd)) { Is this LISP or what? ;) Eike --nextPart1384148.rnYdPORNX9 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) iEYEABECAAYFAkyiWM8ACgkQXKSJPmm5/E7KkQCgglTnTW8gFujWZfXnnB02k8SQ SNYAoIgVZr4uyPQKirWkOEW9VEE43Vuc =1/fv -----END PGP SIGNATURE----- --nextPart1384148.rnYdPORNX9--