dissenting.
Plaintiff Thomas Smith pled guilty to a violation of California Penal Code § 148(a)(1) and was sentenced to three years’ probation. Section 148(a)(1) makes it a misdemeanor for a person to “willfully resist, delay, or obstruct any ... peace officer ... in the discharge” of his or her duties. Cal.Penal Code § 148(a)(1). Smith filed this § 1983 suit alleging excessive force by the police during the events leading up to his arrest. Smith filed suit while he was still on probation and was therefore “in custody” for purposes of ha-beas corpus. However, when we heard argument in this case he was no longer in custody, and habeas corpus was no longer available as a remedy.
The majority holds that Smith’s § 1983 suit is barred by the Supreme Court’s decision in Heck v. Humphrey, 512 U.S. 477, 114 S.Ct. 2364, 129 L.Ed.2d 383 (1994). For two independently sufficient reasons, the majority is wrong as a matter of law.
First, in Heck the Court held that a prisoner plaintiff cannot bring a § 1983 suit if success in that suit “would necessarily imply the invalidity of his conviction or sentence.” Id. at 487, 114 S.Ct. 2364. In that event, the plaintiffs sole remedy is habeas corpus. If, on the other hand, “the plaintiffs action, even if successful, will not demonstrate the invalidity of any outstanding criminal judgment against the plaintiff, the [§ 1983] action should be allowed to proceed[.]” Id. (emphasis in original). In this case, success in Smith’s § 1983 suit would not “necessarily imply” or “demonstrate” the “invalidity of his conviction or sentence” under § 148(a)(1). His suit therefore “should be allowed to proceed.” In holding Smith’s § 1983 suit barred by Heck, the majority’s decision directly conflicts with Heck itself, with our own decision in Sanford v. Motts, 258 F.3d 1117 (9th Cir.2001), and with the decisions of four of our sister circuits.
*1145Second, in Nonnette v. Small, 316 F.3d 872 (9th Cir.2002), we held that a § 1983 suit is available to a plaintiff who, when his appeal is heard, cannot file a habeas petition because he has been released from custody. In holding that Smith’s suit is barred despite the current unavailability of habeas, the majority’s decision conflicts with Nonnette.
The majority is also wrong as a matter of policy. The decision provides a road map that will enable police effectively to eliminate many, perhaps most, § 1983 excessive force suits. Under the majority’s decision, if a police department is concerned that one or more of its officers may have used excessive force, it should press charges under CaLPenal Code § 148(a)(1) or an equivalent statute. In most cases, it will be easy to show that at some point in the encounter the would-be § 1983 plaintiff “resisted], delay[ed], or obstructed]” a police officer in the discharge of his or her duties. If the would-be plaintiff pleads guilty to a violation of § 148(a)(1) or its equivalent in return for a probated sentence, as Smith did in this case, a § 1983 suit based on excessive force is forever barred. This is a pretty neat trick, made possible — indeed invited — by the majority’s decision.
I. Background
The facts of the encounter between Smith and the police are not seriously disputed. Smith’s wife called the police to report a domestic disturbance. When the police arrived, Smith came out onto the porch of his house with his hands in his pockets. Officer Reinbolt, the first officer on the scene, instructed Smith to remove his hands from his pockets. Smith refused to comply. Instead, he swore at Officer Reinbolt, entered the house, and reemerged with his hands still in his pockets. Officer Reinbolt then instructed Smith to put his hands on his head and come down from the porch. Smith again refused to comply. Officer Quinn then instructed Smith to turn around and place his hands on his head. Smith again refused to comply-
After these refusals, the officers came onto the porch. They pepper-sprayed Smith, pushed him against the door, wrestled him to the ground, and instructed a police canine to bite him. Based on a tape recording made by Officer Reinbolt, we know that the entire encounter lasted five minutes or somewhat longer.
Smith pled guilty in California Superior Court to a violation of California Penal Code § 148(a)(1).1 Section 148(a)(1) provides: “Every person who willfully resists, delays, or obstructs any ... peace officer ... in the discharge or attempt to discharge any duty of his or her office or employment, ... shall be [guilty of a misdemeanor].” Under California ease law, a person cannot be guilty of violating § 148(a)(1) if an officer is acting unlawfully because, in that event, the officer would not be discharging his or her duty. See Susag v. City of Lake Forest, 94 Cal.App.4th 1401, 115 Cal.Rptr.2d 269, 273-74 (2002); People v. Olguin, 119 Cal.App.3d 39, 173 Cal.Rptr. 663, 666 (1981).
Smith violated § 148(a)(1) at least three times before the officers came onto the porch and used force against him. He violated § 148(a)(1) when he refused to take his hands out of his pockets, when he refused to put his hands on his head and come down off the porch, and, finally, when he refused to put his hands on his head and turn around. In all three instances, Officers Reinbolt and Quinn issued lawful commands within the proper *1146scope of their duties, and in all three instances Smith resisted, delayed, or obstructed the officers.
Defendants do not dispute that Smith violated § 148(a)(1) before the officers came onto the porch. Officer Quinn stated in his deposition that, based on his training and experience, Smith had violated § 148(a)(1) by the time he had approached the porch.
Q: As you approached Mr. Smith, what was he doing?
A [by Officer Quinn]: Standing on or near his porch.
Q: Did he make any threats of injury directed toward you?
A: No.
Q: Did you hear him make any threats of injury directed toward anybody?
A: No.
Q: When you were approaching Mr. Smith, he was still in disobedience of the officers’ commands; is that right?
A: Sure.
Q: ... Based on your training, what are the elements for making an arrest for a violation of Section 148 of the Penal Code?
A: Somebody has to obstruct, delay, or resist a police officer in the performance of their duties.
Q: Were the officers engaged in the performance of their duties as they were giving command to Mr. Smith to put his hands on his head and step off the porch?
A: Yes.
Q: Was Mr. Smith’s noncompliance with those commands obstructing or delaying the officers in the performance of their duties?
A: Yes.
Q: So based on your training and experience, Mr. Smith — that is, by the time that you’re approaching him on the porch — Mr. Smith had violated Penal Code Section 148.
A: Sure.
At oral argument, defense counsel conceded that Smith had violated § 148(a)(1) before the officers had come onto the porch.
On October 27, 1999, Smith pled guilty to a violation of § 148(a)(1) without pleading to any specific set of facts. Smith was sentenced to 36 months’ probation. On October 16, 2000, while he was still on probation and was therefore still in “custody” for purposes of habeas, Smith filed this § 1983 suit. Cervantes v. Walker, 589 F.2d 424, 425 n. 1 (9th Cir.1978) (describing “custody” under 28 U.S.C. § 2254). On July 19, 2002, the district court granted summary judgment to defendants. During the pendency of his appeal to this court, Smith’s probation ended. Because Smith is no longer in custody, he cannot now file a petition for habeas corpus challenging his conviction under § 148(a)(1).
II. “Necessarily Imply” or “Demonstrate” the “Invalidity of a Conviction or Sentence”
As I will elaborate below, the majority misunderstands the crime of which Smith was convicted and draws an improper inference of what Smith admitted by his guilty plea. Further, the majority misreads our decision in Cunningham v. Gates, 312 F.3d 1148 (9th Cir.2002), to mean that Smith’s § 1983 suit is barred by Heck because Smith’s violation of § 148(a)(1) and the officers’ use of force were not “two discrete incidents.” Maj. op. at 1144. The majority’s decision conflicts with Heck itself, with our recent decision in Sanford v. Motts, and with decisions of the Third, Seventh, Tenth and Eleventh Circuits.
*1147A. Heck v. Humphrey
The question under Heck is whether success in Smith’s § 1983 suit would “necessarily imply” or “demonstrate” the invalidity of his conviction or sentence under § 148(a)(1). The undisputed factual narrative makes clear that it would not. For a § 148(a)(1) cohviction to be valid, a person must have “resist[ed], delay[ed], or obstruct[ed]” a police officer in the lawful exercise of his or her duties. If a police officer uses excessive force, he or she is not acting lawfully. See Susag, 115 Cal.Rptr.2d at 273-74; Olguin, 173 Cal.Rptr. at 666. A person therefore cannot validly be convicted under § 148(a)(1) if the officer used excessive force while the person resisted, delayed, or obstructed the officer.
If Smith had pled guilty to § 148(a)(1) based on his behavior after the officers came onto the porch to subdue him, his suit would be barred by Heck.2 This is so because if Smith were successful in his § 1983 suit, that would necessarily mean that the officers were using excessive force to subdue him and were therefore acting unlawfully. If they were acting unlawfully, Smith’s conviction under § 148(a)(1) was invalid.
However, if Smith pled guilty based on his behavior before the officers came onto the porch, his suit would not be barred. This is so because if Smith were successful in his § 1983 suit, that success would be based on excessive force that occurred after Smith had already violated § 148(a)(1). In that circumstance, the success of Smith’s § 1983 suit would not necessarily imply or demonstrate the invalidity of his conviction or sentence under § 148(a)(1), for the conviction would be based on behavior that took place while Smith stood alone and untouched on his porch.
The facts that are the basis for Smith’s plea of guilty to a violation of § 148(a)(1) were not specified in the plea. It is therefore entirely possible that Smith pled guilty to a violation of § 148(a)(1) based on his behavior before the officers came onto the porch. If that is so, a successful § 1983 suit based on excessive force after the officers came on the porch is entirely consistent with a valid conviction under § 148(a)(1). The majority decision thus directly conflicts with Heck in holding that Smith’s § 1983 suit is barred.
B. Sanford v. Motts
The majority’s decision conflicts not only with Heck itself, but also with our decision in Sanford v. Motts, 258 F.3d 1117 (9th Cir.2001). In Sanford, we held that a successful § 1983 suit based on excessive force did not necessarily imply the invalidity of the plaintiffs conviction under § 148(a)(1). Plaintiff Sanford was involved in an altercation with an animal control officer. After she was handcuffed, Sanford verbally attempted to interfere with the officer’s arrest of her boyfriend. The officer then struck her in the face. Sanford pled nolo contendere to violating § 148(a)(1) and, like Smith, was sentenced to three years’ probation.
As in our case, nothing in the record revealed the factual basis of Sanford’s plea. We explained that if the officer’s excessive force occurred “subsequent to the time Sanford interfered with [the officer’s] duty, success in her section 1983 claim [would] not invalidate her conviction.” Id. We held that defendants had not established their Heck defense because they had not shown the factual basis of Sanford’s plea. We held that there was no Heck bar even though Sanford’s interfer*1148ence with the officer and the officer’s application of allegedly excessive force were part of a continuous sequence of events, even though Sanford’s interference provoked the officer’s use of force, and even though the interference and the force were separated by only a few moments.
In finding no Heck bar in Sanford, we explained that if the officer “used excessive force subsequent to the time Sanford interfered with his duty, success in her § 1983 claim will not invalidate her conviction.” Id. at 1120. The same is true here. When Smith stood on his porch, alone and untouched, he violated § 148(a)(1) by refusing to obey the officers’ commands. It is uncontested that at that time the officers were acting lawfully and Smith unlawfully. A finding in Smith’s § 1983 suit that the officers later used excessive force when they came onto the porch to subdue Smith would have no effect on his conviction under § 148(a)(1). The majority opinion thus directly conflicts with Sanford in holding that Smith’s § 1983 suit is barred.
C. Decisions of Other Circuits
The majority decision also directly conflicts with decisions of four of our sister circuits. In Martinez v. City of Albuquerque, 184 F.3d 1123 (10th Cir.1999), plaintiff Martinez had solicited sex from a police officer posing as a prostitute. Martinez fled briefly from the police in his car. He then stopped his car, locked the doors, rolled down the window, and protested to the police that he had done nothing wrong. Martinez refused a command to get out of the car. One of the officers reached in and tried to unlock the door. Martinez rolled up the window into the officer’s arm. Another officer then struck Martinez in the face and unlocked the car. The officers then arrested Martinez. The entire incident lasted two to three minutes.
After a bench trial in state court, Martinez was found guilty of violating New Mexico Statute § 30-22-1. There were two subparts of the statute under which Martinez could have been convicted. The first, subpart B, prohibits “resisting, evading or obstructing an officer [by] intentionally fleeing, [or] attempting to evade[.]” N.M. Stat. Ann. § 30-22-1B. The Tenth Circuit held that if Martinez had been convicted under this subpart of the statute, it was because he intentionally fled in his car. The success of his § 1983 suit “simply had no bearing on his conviction,” id. at 1126, because Martinez had fled before any force was used against him.
The second subpart under which Martinez could have been convicted, subpart D, prohibits “resisting, evading or obstructing an officer [by] resisting or abusing any ... police officer in the lawful discharge of his duties.” N.M. Stat. Ann. § 30-22-ID. If Martinez was convicted under this subpart, it was because he refused to get out of the car and closed the car window on the officer’s arm. The Tenth Circuit explained that a successful § 1983 excessive force suit would not necessarily imply the invalidity of Martinez’s conviction under this subpart either:
[W]hether Martinez resisted arrest by failing to heed instructions and closing his vehicle’s window on the officer’s arm is ... a question separate and distinct from whether the police officers exercised excessive or unreasonable force in effectuating his arrest. The state court’s finding that Martinez resisted a lawful arrest, even if based on § 30-22-1D, may coexist with a finding that the police officers used excessive force to subdue him.
Id. at 1127.
Both the New Mexico statute and California Penal Code § 148(a)(1) require as an element of the offense that the police officer be engaged in the lawful discharge of his duties. Compare N.M. Stat. Ann. *1149§ 30-22-ID, and State v. Prince, 126 N.M. 547, 972 P.2d 859, 862 (1998), with People v. Simons, 42 Cal.App.4th 1100, 50 Cal.Rptr.2d 351, 355 (1996). The alleged use of excessive force against both Smith and Martinez immediately followed their resistance or obstruction of the police in the lawful discharge of their duties. Martinez’s refusal to exit his car, his rolling up the window, and the officer’s striking him, were all part of a continuous sequence of events separated in time by only moments.
Smith’s refusal to obey the commands of Officers Reinbolt and Quinn before they came onto the porch and the officers’ use of force on Smith after they came onto the porch were part of a continuous sequence of events, just as in Martinez. Further, Smith’s refusal and the officers’ use of force were separated by only a short time, just as in Martinez. Indeed, in Martinez, and probably in Sanford, the elapsed time between the resistance and the use of force was less than in Smith’s case.
In Nelson v. Jashurek, 109 F.3d 142 (3d Cir.1997), the Third Circuit permitted plaintiff Nelson to proceed with his § 1983 excessive force suit despite his state court conviction under Pennsylvania’s statute governing resisting arrest. The statute provides that a person is guilty of resisting arrest if “with the intent of preventing a public servant from effecting a lawful arrest [he] ... employs means justifying or requiring substantial force to overcome [his] resistance.” 18 Pa. Cons.Stat. Ann. § 5104. (Emphasis added.) Nelson had run away, disobeying a police officer’s order to stop. The officer caught Nelson and, after a struggle, subdued him. Nelson then sat down in a chair. When Nelson got up, the officer hit him with a flashlight and, according to Nelson, used excessive force to subdue him.
In analyzing the Heck defense, the Third Circuit carefully analyzed § 5104. Since § 5104 specified only that the defendant must have “employfed] means justifying or requiring substantial force to overcome [his] resistance,” and since Nelson alleged excessive rather than substantial force, a successful § 1983 suit “would not throw the validity of the judgment of conviction in the criminal case into doubt.” Id. at 145. The court therefore allowed Nelson’s § 1983 suit to go forward. In Nelson, as in Sanford, Martinez and our case, Nelson’s actions that constituted a violation of the criminal statute and the officer’s use of allegedly excessive force were part of a continuous sequence of events and were separated only by a short period of time.
In Willingham v. Loughnan, 261 F.3d 1178 (11th Cir.2001), cert, granted and judgment vacated on other grounds, 537 U.S. 801, 123 S.Ct. 68, 154 L.Ed.2d 2 (2002), plaintiff Willingham was convicted by a state court jury of attempted second-degree murder of one police officer and battery of another police officer. Willing-ham brought a § 1983 excessive force suit against the officers and obtained a substantial jury verdict. The actions that were the basis for Willingham’s criminal conviction and the § 1983 verdict overlapped in time and were part of the same sequence of events. The Eleventh Circuit reviewed the evidence presented in the criminal trial and held that “a finding of excessive force by the jury in this civil case does not necessarily call into question the validity of [Willingham’s] criminal conviction.” 261 F.3d at 1183. The court therefore refused to hold that Willingham’s § 1983 suit was barred by Heck. Even more than in Sanford, Martinez, Nelson and our case, the facts underlying Willing-ham’s criminal conviction and his § 1983 verdict were not “discrete incidents.” Maj. op. at 1143.
Finally, in Robinson v. Doe, 272 F.3d 921 (7th Cir.2001), plaintiff Robinson was *1150convicted of a drug offense, based in part on evidence seized in a search that accompanied his arrest. Robinson brought a § 1983 suit alleging excessive force during the arrest. If the arrest had been unlawful, the evidence would have been unlawfully seized, which would have necessarily implied the invalidity of Robinson’s criminal conviction. The court nevertheless held that Heck did not bar Robinson’s § 1983 suit:
Police might well use excessive force in effecting a perfectly lawful arrest. And so a claim of excessive force in making an arrest does not require overturning the plaintiffs conviction even though the conviction was based in part on a determination that the arrest itself was lawful.
Id. at 923. See also Wells v. Bonner, 45 F.3d 90, 95 (5th Cir.1995) (assuming without deciding that a finding of excessive force would not imply the invalidity of the plaintiffs conviction for resisting a search).
D. Mistakes in the Majority Opinion
The majority opinion makes two crucial mistakes. First, it misunderstands the crime of which Smith was convicted, and as a result draws an incorrect inference from his guilty plea. Second, it misreads our opinion in Cunningham v. Gates, 312 F.3d 1148 (9th Cir.2002), to require that a § 1983 plaintiff show that his criminal conviction and his § 1983 excessive force suit be based on “two discrete incidents.” Maj. op. at 1144.
First, the majority misunderstands California law. It concludes from Smith’s guilty plea that he admitted his arrest was lawful. That would be true if Smith had pled guilty to resisting arrest. But Smith did not plead guilty to resisting arrest. Rather, he pled guilty to violating § 148(a)(1).
The majority’s mistake stems from a confusion about what is prohibited by § 148(a)(1). A violation of § 148(a)(1) is sometimes called, in shorthand, “resisting arrest.” See, e.g., Hernandez v. City of Los Angeles, 624 F.2d 935, 936 (9th Cir.1980) (“Hernandez was tried ... on charges of violating ... § 148 (resisting arrest)[J”). If § 148(a)(1) prohibited “resisting arrest,” a guilty plea would, indeed, admit that officers were acting lawfully when they performed the arrest, for a person can violate § 148(a)(1) only if officers are acting lawfully. But § 148(a)(1) does not prohibit “resisting arrest.” Rather, it prohibits “resisting], delaying], or obstructfing]” an officer in the performance of his or her duties. By pleading guilty, Smith necessarily admitted that the officers were acting lawfully when he violated § 148(a)(1). But defendants concede that Smith violated § 148(a)(1) before the officers came onto the porch. By his plea, Smith thus admitted only that the officers were acting lawfully in giving him commands while he stood alone and untouched.
Second, the majority reads Cunningham v. Gates to require that the facts underlying the crime and the use of excessive force be “two discrete incidents.” Maj. op. at 1143. The majority particularly relies on a sentence in Cunningham stating that Cunningham’s § 1983 suit was barred by Heck because “there was no break between Cunningham’s provocative act of firing on the police and the police response that he claims was excessive.” Cunningham, 312 F.3d at 1155; See Maj. op. at 1143 (quoting Cunningham). The majority misreads this sentence to mean that Smith’s acts and the officers’ response must have been “two discrete incidents” for his § 1983 suit to go forward under Heck. Maj. op. at 1144.
The majority misreads Cunningham because it fails to examine the crime for which Cunningham was convicted. Cunningham and a partner named Soly had *1151robbed a liquor store. Police officers then exchanged gunfire with Cunningham and Soly, severely injuring Cunningham and killing Soly. Cunningham was convicted by a jury of attempted murder (of the police), felony murder (of Soly), robbery and burglary. Cunningham thereafter brought a § 1983 excessive force suit against the officers.
One of Cunningham’s § 1983 claims was that even though he had provoked the officers by shooting at them, the officers had responded excessively to the provocation. We concluded that success on this claim would necessarily be inconsistent with Cunningham’s conviction for felony murder, and that the claim was therefore barred by Heck. We based our conclusion on the jury instruction for felony murder, which had required the jury to find that Cunningham had “committed an intentional provocative act,” that the officer had killed Soly “in response to the provocative act,” and that Cunningham’s provocative act was a “cause of [Soly’s] death.” 312 F.3d at 1152. We explained the inconsistency between Cunningham’s § 1983 claim and the jury’s guilty verdict in a paragraph from which the majority has taken only the first sentence:
[TJhere loas no break between Cunningham’s provocative act of filing on the police and the police response that he claims was excessive. Indeed, in convicting Cunningham of felony murder, the jury concluded that the police response was a natural consequence of Cunningham’s provocative act. Because the two are so closely interrelated, Cunningham’s conviction forecloses his excessive force claim against the ... officers.
Id. at 1155 (emphasis indicates sentence quoted by the majority).
Once the sentence is understood in context, it is clear that our requirement in Cunningham that there have been a “break” between Cunningham’s provocative act and the police response was dictated by the crime of which Cunningham was convicted. In his § 1983 claim, Cunningham had asserted that although he had provoked the response by the officers, the response had been excessive. In order for his § 1983 claim to have been successful, there must have been an insufficient link between the provocation and the response, such that the response by the officers went beyond the provocation. We held that if there had been an insufficient link — a “break” between the provocation and the response, this would necessarily have been inconsistent with the jury’s verdict that Cunningham was guilty of felony murder, for the felony murder instruction specifically required a causal connection between Cunningham’s provocation and the officers’ deadly response.
The “break” requirement of Cunningham — the requirement that there be, in the words of the majority, “two discrete incidents” — is not a general requirement for § 1983 excessive force suits. Rather, it is a requirement specifically tailored to Cunningham’s conviction for felony murder. If it were a general requirement that there be “two separate incidents,” our decision in Sanford, and our sister circuits’ decisions in Martinez, Nelson, and Will-ingham were all wrongly decided, for there was no “break” — in time or causation — in any of those cases.
Even though Sanford had been decided only a year and a half before Cunningham, the analysis in Cunningham, dealing with a conviction for felony murder, and the analysis in Sanford, dealing with a conviction under § 148(a)(1), are so distinct from one another that we saw no need in Cunningham even to discuss Sanford. Our case is, of course, a Sanford-type case, in which the § 1983 plaintiff has been convicted under § 148(a)(1). Cun*1152ningham is as irrelevant to the analysis in our case as it was to the analysis in Sanford.
E. Conclusion
In the end, this is a simple case. As an analytic matter, we have already decided it in Sanford, and our sister circuits have already decided it in Martinez, Nelson, Willingham, and Robinson. Smith violated § 148(a)(1) when he disobeyed the lawful commands of Officers Reinbolt and Quinn as he stood alone and untouched on his porch. Smith may or may not be able to succeed on the merits of his § 1983 suit, based on what the officers did after they came onto the porch. But success in that suit would be in no way inconsistent with his guilty plea under § 148(a)(1). That is, success in his § 1983 suit would not “necessarily imply” or “demonstrate” the “invalidity of his conviction or sentence” under § 148(a)(1).
III. Unavailability of Habeas Corpus
When we heard Smith’s appeal, his three-year probation had ended and he was no longer in custody. Because Smith is not in custody, he cannot file a petition for habeas corpus under 28 U.S.C. § 2254. In Nonnette v. Small, 316 F.3d 872 (9th Cir.2002), we held that a § 1983 plaintiff in that position is not barred by Heck. Even if the majority were correct that Smith’s § 1983 suit would “necessarily imply” or “demonstrate” the invalidity of Smith’s conviction under § 148(a)(1), it is nonetheless required by Nonnette to allow Smith’s suit to go forward.
We noted in Nonnette that “there is language in Heck suggesting that the prior overturning of any underlying conviction is invariably a prerequisite for a § 1983 action that implies the conviction’s invalidity.” Id. at 876. But we concluded that Justice Souter’s concurrence and Justice Stevens’s dissent in Spencer v. Kemna, 523 U.S. 1, 118 S.Ct. 978, 140 L.Ed.2d 43 (1998), indicate that this would be an incorrect reading of Heck. Nonnette, 316 F.3d at 877-78; see 523 U.S. at 19, 118 S.Ct. 978 (Souter, J., concurring); id. at 25 n. 8, 118 S.Ct. 978 (Stevens, J., dissenting). Informed by Justice Souter and Stevens’s opinions in Spencer, we held in Nonnette that a plaintiff who can no longer challenge his conviction because of release from custody is not barred by Heck from bringing a suit under § 1983. We joined the Second and Seventh Circuits in so holding. See Huang v. Johnson, 251 F.3d 65, 75 (2d Cir.2001); Carr v. O’Leary, 167 F.3d 1124, 1127 (7th Cir.1999).
The plaintiff in Nonnette had been in custody, and thus could have filed a petition for habeas corpus, at the time he filed his § 1983 suit. Only while his § 1983 suit was on appeal was he released from custody, and only then did habeas become unavailable. We held in Nonnette that even in this circumstance a § 1983 suit may be pursued. Nonnette is on all fours with this case. When Smith filed his § 1983 suit, he was still on probation and therefore still in custody for purposes of habeas corpus. While his case was on appeal to us, his probation was completed and he was released from custody. Because he is no longer in custody, and because habeas corpus is not available to him, our holding in Nonnette requires that he be allowed to proceed with his suit under § 1983.
IV. A Road Map for Police
Not only is the majority wrong as a matter of law. It is also grievously wrong as a matter of policy. The majority has provided a road map that will allow police officers and their departments to avoid many, perhaps most, excessive force eases. If a department is concerned that one or more of its officers may have used excessive force, the majority opinion instructs it to press charges under Cal.Penal Code *1153§ 148(a)(1) or an equivalent statute. In most cases where there is a possible § 1983 excessive force suit, it will be child’s play to obtain a conviction for a violation of § 148(a)(1) or its equivalent. In some of these cases, the would-be plaintiff may be charged and convicted only because the officers and their department want to avoid a § 1983 suit. Many, perhaps most, defendants will be willing to plead guilty to a violation of § 148(a)(1) in return for a probated sentence. Indeed, I cannot help noticing that the plaintiffs in Sanders and in this case both pled guilty to violating § 148(a)(1), and that they both received sentences of three years’ probation.
If the majority opinion stands, a plea bargain resulting in a conviction under § 148(a)(1) will forever bar a § 1983 excessive force suit. This is a pretty neat trick, but it is not much of a bargain. On one side, the police officers are able to avoid a § 1983 suit for excessive force. On the other, the would-be (and now-barred) § 1983 plaintiff gets a conviction under § 148(a)(1).
V. Conclusion
The majority decision is inconsistent with Heck and with our decision in Sanford; it is inconsistent with decisions by the Third, Seventh, Tenth, and Eleventh Circuits; and it is inconsistent with our decision in Nonnette. The majority decision is also an open invitation to police departments to use charges and plea bargains under § 148(a)(1), or its equivalent, to avoid § 1983 excessive force suits.
I dissent.
. Smith also pled guilty to spousal battery under California Penal Code § 243(e). The consequences of that conviction are not at issue in this case.
. I assume, for purposes of this statement, that Smith does not have an alternative basis for proceeding under § 1983.